dnd: work around cairo-gl brokenness
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 25 May 2012 13:03:06 +0000 (16:03 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 26 May 2012 03:28:59 +0000 (23:28 -0400)
commit210eb9d2bafda34f30b56171ba7adefc3df4c82d
tree6b698e1318387196c572ed0970e5141e6a5ed506
parentdc8c8fce72a169fe5d1dd716e29b406ea044ae4b
dnd: work around cairo-gl brokenness

If cairo-gl is used, display_create_surface() will create an
wl_egl_window for each surface and this will result in errors if this
surface is used as a source. Also, one can't get a wl_buffer for such
a surface wich led to crashes when trying to do so for the drag icon.

This patch works around both problems by forcing the item and drag icon
surfaces to use shm.
clients/dnd.c
clients/window.c
clients/window.h