aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_xdg_activation_v1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/types/wlr_xdg_activation_v1.c b/types/wlr_xdg_activation_v1.c
index c04827bf..74ac0a8e 100644
--- a/types/wlr_xdg_activation_v1.c
+++ b/types/wlr_xdg_activation_v1.c
@@ -115,9 +115,10 @@ static void token_handle_commit(struct wl_client *client,
}
if (token->surface != NULL &&
- token->surface != token->seat->keyboard_state.focused_surface) {
+ token->surface != token->seat->keyboard_state.focused_surface &&
+ token->surface != token->seat->pointer_state.focused_surface) {
wlr_log(WLR_DEBUG, "Rejecting token commit request: "
- "surface doesn't have keyboard focus");
+ "surface doesn't have focus");
goto error;
}
}