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.
This commit is contained in:
Ander Conselvan de Oliveira 2013-12-13 22:10:58 +02:00 committed by Kristian Høgsberg
parent 31236932a1
commit fc63fddcee

View file

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