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:
parent
30d68af051
commit
1564b9d1a3
1 changed files with 3 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ impl State {
|
||||||
.map(|inhibitor| inhibitor.is_active())
|
.map(|inhibitor| inhibitor.is_active())
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
|
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
|
||||||
});
|
});
|
||||||
let sym = handle.modified_sym();
|
let sym = handle.modified_sym();
|
||||||
|
|
||||||
|
|
@ -685,6 +686,7 @@ impl State {
|
||||||
.map(|inhibitor| inhibitor.is_active())
|
.map(|inhibitor| inhibitor.is_active())
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
|
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
|
||||||
});
|
});
|
||||||
|
|
||||||
let serial = SERIAL_COUNTER.next_serial();
|
let serial = SERIAL_COUNTER.next_serial();
|
||||||
|
|
@ -1536,6 +1538,7 @@ impl State {
|
||||||
.map(|inhibitor| inhibitor.is_active())
|
.map(|inhibitor| inhibitor.is_active())
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
|
|| matches!(f, KeyboardFocusTarget::XWaylandGrab(_))
|
||||||
});
|
});
|
||||||
|
|
||||||
self.common.atspi_ei.input(
|
self.common.atspi_ei.input(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue