weston/desktop-shell
Bryce Harrington 22b1f93432 shell: Check more thoroughly for undefined surface resource
The surface can have an undefined resource in certain situations (such
as with xwayland).  So, since NULL is a valid state for this parameter,
and since the wl_resource_*, etc. calls require their parameters to be
non-NULL, make a practice of always checking the surface resource before
making wayland calls.

update v2:
  * Fix some c/p errors for pointer names
  * Drop null ptr check in add_popup_grab; probably redundant now

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2016-02-03 19:05:12 -08:00
..
exposay.c Support axis source, axis discrete, frame and axis stop events 2016-01-19 12:33:26 +08:00
input-panel.c desktop-shell: Rename protocol weston_desktop_shell 2015-11-19 14:58:58 +02:00
shell.c shell: Check more thoroughly for undefined surface resource 2016-02-03 19:05:12 -08:00
shell.h desktop-shell: Make zapping configurable 2016-01-12 09:24:05 -06:00