Inhibit keyboard shortcuts if XWayland grab is active

This matches behavior in X11 sessions (Gnome and i3). It presumably is
reasonable to have the same behavior here as with Wayland-native
keyboard shortcut inhibition.
This commit is contained in:
Ian Douglas Scott 2025-06-18 14:54:54 -07:00 committed by Victoria Brekenfeld
parent 30d68af051
commit 1564b9d1a3

View file

@ -246,6 +246,7 @@ impl State {
.map(|inhibitor| inhibitor.is_active())
})
.unwrap_or(false)
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
});
let sym = handle.modified_sym();
@ -685,6 +686,7 @@ impl State {
.map(|inhibitor| inhibitor.is_active())
})
.unwrap_or(false)
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
});
let serial = SERIAL_COUNTER.next_serial();
@ -1536,6 +1538,7 @@ impl State {
.map(|inhibitor| inhibitor.is_active())
})
.unwrap_or(false)
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
});
self.common.atspi_ei.input(