shell: Don't activate windows, if groups are selected
This commit is contained in:
parent
a04bcdd2b0
commit
c282c5c08e
1 changed files with 10 additions and 2 deletions
|
|
@ -136,12 +136,20 @@ impl Shell {
|
|||
// update activate status
|
||||
let focused_windows = seats
|
||||
.flat_map(|seat| {
|
||||
self.outputs.iter().flat_map(|o| {
|
||||
if matches!(
|
||||
seat.get_keyboard().unwrap().current_focus(),
|
||||
Some(KeyboardFocusTarget::Group(_))
|
||||
) {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(self.outputs.iter().flat_map(|o| {
|
||||
let space = self.active_space(o);
|
||||
let stack = space.focus_stack.get(seat);
|
||||
stack.last().cloned()
|
||||
})
|
||||
}))
|
||||
})
|
||||
.flatten()
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
for output in self.outputs.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue