shell: Handle wl_shell surfaces created by xwayland correctly
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 3 Feb 2014 23:50:38 +0000 (15:50 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 3 Feb 2014 23:50:38 +0000 (15:50 -0800)
commit0b7d9958a8dfdac47bca6b3d08ec46f2ee48b9ae
tree2842a822f1471dd64057533f341719c1c0999a4a
parent49fcd001b12b994a13df3dc5cb3acfab96463337
shell: Handle wl_shell surfaces created by xwayland correctly

When xwayland creates a shell surface we don't have a resource.  The
recently added shell_surface_is_wl_shell/xdg_surface() tests don't
handle that very well.

For now, we assume that a surface without a resource is created from
xwayland and is a wl_shell surface.  We'll want to modify that to be a
xdg surface eventually, but for now this stops weston from crashing.
desktop-shell/shell.c