wlr-toplevel-manager: try to make window visible when activating
This commit is contained in:
parent
7f48424e29
commit
4fcfc37581
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue