core: layer deferred surfaces with draw priorities

This commit is contained in:
2026-11-13 03:38:44 +07:00
parent 306644e581
commit dad833f998
8 changed files with 58 additions and 36 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ use gpui_native_theme::{ActiveTheme as _, TOAST_MAX_WIDTH};
use gpui_native_utils::ResultLogErr as _;
use crate::button::{Button, ButtonVariant};
use crate::common::{DismissHandler, Sizable as _};
use crate::common::{DismissHandler, Sizable as _, TOAST_LAYER};
/// The action handler of a [`Toast`].
pub type ActionHandler = Rc<dyn Fn(&mut App)>;
@@ -259,6 +259,7 @@ impl RenderOnce for ToastsView {
))
}),
)
.with_priority(TOAST_LAYER)
}
}