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