summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoyan Ding <stu_dby@126.com>2014-06-26 10:19:32 +0800
committerJason Ekstrand <jason.ekstrand@intel.com>2014-06-25 19:59:26 -0700
commit32abdbbad97e99cc76409ecfa4b446db63907cc3 (patch)
treec1f8cdd4adad72e42f6dedc278aa4a02cdc6d52c
parentdfd9d0de9637ab2be44885b6a5a7b379dce097ed (diff)
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 <stu_dby@126.com>
-rw-r--r--desktop-shell/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index d267cde2..f22cef8e 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);
}