1
0
Fork 0
forked from wry/wry

Merge pull request #523 from mahkoh/jorth/show-window-on-activate

wlr-toplevel-manager: try to make window visible when activating
This commit is contained in:
mahkoh 2025-07-19 16:15:24 +02:00 committed by GitHub
commit d971b712e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,10 @@ impl ZwlrForeignToplevelHandleV1RequestHandler for ZwlrForeignToplevelHandleV1 {
fn activate(&self, req: Activate, _slf: &Rc<Self>) -> Result<(), Self::Error> {
if let Some(toplevel) = self.toplevel.get() {
if !toplevel.node_visible() {
return Ok(());
toplevel.clone().node_make_visible();
if !toplevel.node_visible() {
return Ok(());
}
}
let seat = self.client.lookup(req.seat)?;
toplevel.node_do_focus(&seat.global, Direction::Unspecified);