[PATCH 10/10] shell: Reset fullscreen and maximized state on output unplug

Ander Conselvan de Oliveira conselvan2 at gmail.com
Fri Dec 13 12:10:58 PST 2013


From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>

When a view is moved to another output because its current output was
unplugged, remove the fullscreen and maximized state.
---
 desktop-shell/shell.c |    3 +++
 1 file changed, 3 insertions(+)

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);
-- 
1.7.9.5



More information about the wayland-devel mailing list