From: Ander Conselvan de Oliveira Date: Fri, 13 Dec 2013 20:10:58 +0000 (+0200) Subject: shell: Reset fullscreen and maximized state on output unplug X-Git-Tag: 1.3.91~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc63fddcee7301a9c1693561a7300a2929dc4baa;p=platform%2Fupstream%2Fweston.git shell: Reset fullscreen and maximized state on output unplug When a view is moved to another output because its current output was unplugged, remove the fullscreen and maximized state. --- diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index f70b310..c962d26 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -4975,6 +4975,9 @@ shell_surface_output_destroyed(struct weston_surface *es) struct shell_surface *shsurf = get_shell_surface(es); shsurf->saved_position_valid = false; + shsurf->next_state.maximized = false; + shsurf->next_state.fullscreen = false; + shsurf->state_changed = true; } static void launch_desktop_shell_process(void *data);