window: fix display_acquire_window_surface()
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 20 Feb 2013 11:39:17 +0000 (13:39 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 20 Feb 2013 19:13:41 +0000 (14:13 -0500)
commit6f41b0727cb6c61fd487ecee43098adb03ac12da
tree29d384ff2b31cb92fe8480e79a93b1fc2912551c
parent7cc3d846f42da60bb9a5232e0afc5afea435e7f5
window: fix display_acquire_window_surface()

Make sure that display_acquire_window_surface() creates the Cairo
surface as necessary. Otherwise surface->toysurface can be NULL.

This fixes weston-screensaver fullscreen mode. Demo mode was not
affected as it uses window decorations, and so the Cairo surface is
created. This regression was introduced by:

commit 0c4445ba5756e51007606028bce00b2ecb352bd7
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date:   Wed Feb 13 16:17:23 2013 +0200

    window: create Cairo surfaces on demand for redraw

Reported-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c