shell: rebase fullscreen changes on for xwayland-grab
This commit is contained in:
parent
9d91014b8d
commit
7988be12a5
1 changed files with 6 additions and 0 deletions
|
|
@ -1680,6 +1680,12 @@ impl Shell {
|
|||
} else if let KeyboardFocusTarget::XWaylandGrab(surface) = &focus_target {
|
||||
if let Some(new_target) = self.element_for_surface(surface) {
|
||||
focus_target = KeyboardFocusTarget::Element(new_target.clone());
|
||||
} else if let Some(new_target) = self
|
||||
.workspaces
|
||||
.spaces()
|
||||
.find_map(|w| w.get_fullscreen().filter(|s| *s == surface))
|
||||
{
|
||||
focus_target = KeyboardFocusTarget::Fullscreen(new_target.clone());
|
||||
} else if let Some(or) = self
|
||||
.override_redirect_windows
|
||||
.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue