weston/desktop-shell
Ander Conselvan de Oliveira 641796c31a shell: Keep shsurf->fullscreen_output set after unset_fullscreen()
When a fullscreen surface gets the maximized state, the function
reset_surface_type() is called and that causes unset_fullscreen() to be
called. That function would set the value of shsurf->fullscreen_output
to NULL. However, since the surface still has the fullscreen state, it
will be configured as a fullscreen surface again, and an attempt to
access that field would cause the compositor to crash.

Fix the crash by keeping the value of fullscreen_output around after
unset_fullscreen(). This is safe since the value is only used when a
surface has the fullscreen state and is replaced on a new request to
make the surface fullscreen.

https://bugs.freedesktop.org/show_bug.cgi?id=76867
2014-04-10 10:20:54 -07:00
..
exposay.c exposay: avoid needlessly activating the active view 2014-02-18 14:07:08 -08:00
input-panel.c shell: position input panel layer above fullscreen layer 2014-04-02 10:35:26 -07:00
shell.c shell: Keep shsurf->fullscreen_output set after unset_fullscreen() 2014-04-10 10:20:54 -07:00
shell.h compositor: implement xdg_surface_set_minimized() 2014-04-02 10:27:13 -07:00