mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 13:28:07 +02:00
exposay: fix crash when navigating with the keyboard
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>
This commit is contained in:
parent
91f80f24b4
commit
5905ebcc33
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue