window: Honour opaque field for windows without a frame
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 30 Nov 2012 15:34:23 +0000 (17:34 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 30 Nov 2012 19:24:00 +0000 (14:24 -0500)
commitddd3e27ab8d269b0cbf1b1a0f030c6fa9e239448
treeaf0ff73ec88c9a8a75645ec0f8cf60875c20a429
parente920941032979d2d808ec9a2febb3fb5763a695e
window: Honour opaque field for windows without a frame

Since the opaque region was set in frame_resize_handler(), if a client
created a frameless window setting the toplevel widget as opaque would
have no effect.

This patch fixes this by moving the call wl_surface_set_opaque_region()
to idle_resize(), and changing the latter function to set the whole
window as opaque if its toplevel widget has the opaque flag set.
clients/window.c