Re: [PATCH weston] compositor-drm: Fix a crash with a fullscreen surface with driver mode

2013-02-26 Thread Kristian Høgsberg
On Tue, Feb 26, 2013 at 01:44:58PM +0200, Ander Conselvan de Oliveira wrote: > If there was a fullscreen surface using driver mode when a vt switch is > triggered, but something caused it to be gone when switching back (such > as the client being killed), a call to drm_output_switch_mode() is made

[PATCH weston] compositor-drm: Fix a crash with a fullscreen surface with driver mode

2013-02-26 Thread Ander Conselvan de Oliveira
If there was a fullscreen surface using driver mode when a vt switch is triggered, but something caused it to be gone when switching back (such as the client being killed), a call to drm_output_switch_mode() is made to restore the old mode, and that sets the output's current drm_fb to NULL, so that