Skip to content

Commit 7988be1

Browse files
committed
shell: rebase fullscreen changes on for xwayland-grab
1 parent 9d91014 commit 7988be1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/shell/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,12 @@ impl Shell {
16801680
} else if let KeyboardFocusTarget::XWaylandGrab(surface) = &focus_target {
16811681
if let Some(new_target) = self.element_for_surface(surface) {
16821682
focus_target = KeyboardFocusTarget::Element(new_target.clone());
1683+
} else if let Some(new_target) = self
1684+
.workspaces
1685+
.spaces()
1686+
.find_map(|w| w.get_fullscreen().filter(|s| *s == surface))
1687+
{
1688+
focus_target = KeyboardFocusTarget::Fullscreen(new_target.clone());
16831689
} else if let Some(or) = self
16841690
.override_redirect_windows
16851691
.iter()

0 commit comments

Comments
 (0)