exposay: Fix logic inversion when ending keyboard grabs
authorDerek Foreman <derekf@osg.samsung.com>
Sat, 18 Jul 2015 01:58:02 +0000 (20:58 -0500)
committerBryce Harrington <bryce@osg.samsung.com>
Sat, 18 Jul 2015 01:59:35 +0000 (18:59 -0700)
I flipped a ! in cee82d62865ab5b239935f102c2e1f7868e0fa65
and the exposay keyboard grab became permanent.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
desktop-shell/exposay.c

index 3fa585a..190dd0c 100644 (file)
@@ -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;