1
0
Fork 0
forked from wry/wry

wlr-toplevel-manager: try to make window visible when activating

This commit is contained in:
Julian Orth 2025-07-19 16:12:10 +02:00
parent 7f48424e29
commit 4fcfc37581

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);