xwm: use attention request when activating invisible windows
This commit is contained in:
parent
3582b8f935
commit
d2f818b0f2
1 changed files with 7 additions and 3 deletions
|
|
@ -2290,9 +2290,13 @@ impl Wm {
|
|||
Some(w) => w,
|
||||
_ => return Ok(()),
|
||||
};
|
||||
let seats = self.state.globals.seats.lock();
|
||||
for (_, seat) in seats.deref() {
|
||||
seat.focus_toplevel(win.clone());
|
||||
if win.toplevel_data.visible.get() {
|
||||
let seats = self.state.globals.seats.lock();
|
||||
for (_, seat) in seats.deref() {
|
||||
seat.focus_toplevel(win.clone());
|
||||
}
|
||||
} else {
|
||||
win.x.surface.request_activation();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue