From: Boyan Ding Date: Thu, 26 Jun 2014 02:19:32 +0000 (+0800) Subject: shell: fix segfault in fullscreen binding X-Git-Tag: 1.5.91~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32abdbbad97e99cc76409ecfa4b446db63907cc3;p=platform%2Fupstream%2Fweston.git shell: fix segfault in fullscreen binding Commit 9aa8ce69 forgot to set shsurf->fullscreen_output in fullscreen_binding(), causing segfault when fullscreening using key bindings. This patch fixes that. https://bugs.freedesktop.org/show_bug.cgi?id=79828 Signed-off-by: Boyan Ding --- diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index d267cde..f22cef8 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -4193,6 +4193,7 @@ fullscreen_binding(struct weston_seat *seat, uint32_t time, uint32_t button, voi shsurf->state_requested = true; shsurf->requested_state.fullscreen = !shsurf->state.fullscreen; + shsurf->fullscreen_output = shsurf->output; send_configure_for_surface(shsurf); }