1
0
Fork 0
forked from wry/wry

Merge pull request #119 from mahkoh/jorth/x-attention

xwm: use attention request when activating invisible windows
This commit is contained in:
mahkoh 2024-03-04 13:19:18 +01:00 committed by GitHub
commit 2ab7b43f74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
}