diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2015-09-23 17:30:43 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@bryceharrington.org> | 2016-02-03 19:05:12 -0800 |
commit | 22b1f93432c775b6ed077c15a19e9e734a2806a5 (patch) | |
tree | 3615b2f9ef1cc3ec0adf5eb6f9de0da9a5b88fd7 /xwayland | |
parent | 90c2789e8d83a5b090cf4b91a6770a93f08028a0 (diff) |
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>
Diffstat (limited to 'xwayland')
0 files changed, 0 insertions, 0 deletions