summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop-shell/exposay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
index 3fa585a5..190dd0c0 100644
--- a/desktop-shell/exposay.c
+++ b/desktop-shell/exposay.c
@@ -523,7 +523,7 @@ exposay_set_inactive(struct desktop_shell *shell)
if (seat->pointer_device_count)
weston_pointer_end_grab(seat->pointer);
- if (!seat->keyboard_device_count) {
+ if (seat->keyboard_device_count) {
weston_keyboard_end_grab(seat->keyboard);
if (seat->keyboard->input_method_resource)
seat->keyboard->grab = &seat->keyboard->input_method_grab;