aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 0ca44bdd..89459533 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -2024,7 +2024,7 @@ enum wlr_xwayland_icccm_input_model wlr_xwayland_icccm_input_model(
xsurface->protocols, xsurface->protocols_len,
WM_TAKE_FOCUS);
- if (xsurface->hints && xsurface->hints->input) {
+ if (!xsurface->hints || xsurface->hints->input) {
if (take_focus) {
return WLR_ICCCM_INPUT_MODEL_LOCAL;
}