diff options
| author | Christian Meissl <meissl.christian@gmail.com> | 2024-11-16 22:35:34 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-29 21:57:36 -0800 |
| commit | 305fc3b5576c4c6e3d899b3413dbbb8727922cfe (patch) | |
| tree | 718972dcc035e6d5bb264e519a92d92884bbcf4f /src/window | |
| parent | 61f2ac01d782f1142aefb78d1286db005021a7a0 (diff) | |
| download | niri-305fc3b5576c4c6e3d899b3413dbbb8727922cfe.tar.gz niri-305fc3b5576c4c6e3d899b3413dbbb8727922cfe.tar.bz2 niri-305fc3b5576c4c6e3d899b3413dbbb8727922cfe.zip | |
Activate newly mapped windows with a valid activation token
most of the time the activation token is passed
while the window is still unmapped. in this case
store the intend to activate the window for
later retrieval on map.
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/unmapped.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window/unmapped.rs b/src/window/unmapped.rs index a74c4e24..98f57aad 100644 --- a/src/window/unmapped.rs +++ b/src/window/unmapped.rs @@ -1,6 +1,7 @@ use smithay::desktop::Window; use smithay::output::Output; use smithay::wayland::shell::xdg::ToplevelSurface; +use smithay::wayland::xdg_activation::XdgActivationTokenData; use super::ResolvedWindowRules; use crate::layout::workspace::ColumnWidth; @@ -9,6 +10,8 @@ use crate::layout::workspace::ColumnWidth; pub struct Unmapped { pub window: Window, pub state: InitialConfigureState, + /// Activation token, if one was used on this unmapped window. + pub activation_token_data: Option<XdgActivationTokenData>, } #[allow(clippy::large_enum_variant)] @@ -57,6 +60,7 @@ impl Unmapped { state: InitialConfigureState::NotConfigured { wants_fullscreen: None, }, + activation_token_data: None, } } |
