shell/stack: Don't reset previous_keyboard on noop set_active call
This commit is contained in:
parent
6c01631f51
commit
e5ea486ea0
1 changed files with 3 additions and 1 deletions
|
|
@ -465,7 +465,9 @@ impl CosmicStack {
|
||||||
self.0.with_program(|p| {
|
self.0.with_program(|p| {
|
||||||
if let Some(val) = p.windows.lock().unwrap().iter().position(|w| w == window) {
|
if let Some(val) = p.windows.lock().unwrap().iter().position(|w| w == window) {
|
||||||
let old = p.active.swap(val, Ordering::SeqCst);
|
let old = p.active.swap(val, Ordering::SeqCst);
|
||||||
p.previous_keyboard.store(old, Ordering::SeqCst);
|
if old != val {
|
||||||
|
p.previous_keyboard.store(old, Ordering::SeqCst);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
self.0
|
self.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue