actions: Remember previous workspace on extended action

This commit is contained in:
Victoria Brekenfeld 2025-02-27 18:14:35 +01:00 committed by Victoria Brekenfeld
parent d76f372c29
commit 1a019280f3
2 changed files with 99 additions and 21 deletions

View file

@ -36,7 +36,7 @@ use smithay::{
},
Seat,
},
output::Output,
output::{Output, WeakOutput},
reexports::{
wayland_protocols::ext::{
session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
@ -257,6 +257,7 @@ pub struct Shell {
pub override_redirect_windows: Vec<X11Surface>,
pub session_lock: Option<SessionLock>,
pub seats: Seats,
pub previous_workspace_idx: Option<(Serial, WeakOutput, usize)>,
theme: cosmic::Theme,
pub active_hint: bool,
@ -1344,6 +1345,7 @@ impl Shell {
pending_activations: HashMap::new(),
override_redirect_windows: Vec::new(),
session_lock: None,
previous_workspace_idx: None,
theme,
active_hint: config.cosmic_conf.active_hint,