shell: Focus window after unfullscreening
This commit is contained in:
parent
261134d827
commit
9d91014b8d
6 changed files with 55 additions and 25 deletions
|
|
@ -889,7 +889,12 @@ impl State {
|
|||
}
|
||||
}
|
||||
Some(FocusTarget::Fullscreen(surface)) => {
|
||||
shell.unfullscreen_request(&surface, &self.common.event_loop_handle);
|
||||
if let Some(target) =
|
||||
shell.unfullscreen_request(&surface, &self.common.event_loop_handle)
|
||||
{
|
||||
std::mem::drop(shell);
|
||||
Shell::set_focus(self, Some(&target), seat, Some(serial), true);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue