exposay: fix crash when navigating with the keyboard
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Sat, 24 May 2014 00:43:04 +0000 (02:43 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 19 Jun 2014 00:14:40 +0000 (17:14 -0700)
Commit a7592019 introduced an optimization that caused some
exposay struct members to not be properly initialized, particularly
cur_output, leading to crashes in some circumstances (e.g. pressing
the down arrow key after going to exposay).

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
desktop-shell/exposay.c

index 1d8b40e..104b9d9 100644 (file)
@@ -323,8 +323,10 @@ exposay_layout(struct desktop_shell *shell, struct shell_output *shell_output)
                i++;
        }
 
-       if (highlight)
+       if (highlight) {
+               shell->exposay.focus_current = NULL;
                exposay_highlight_surface(shell, highlight);
+       }
 
        weston_compositor_schedule_repaint(shell->compositor);