shell: check for missing wl_shell_surface
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 28 Nov 2011 13:34:13 +0000 (15:34 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 4 Dec 2011 19:55:19 +0000 (14:55 -0500)
commit92a0dc455aa8df4086a2ccb3d05a513ec415079d
tree02c4ae99a3c29da1bf68d6a2b31db33891f2ab46
parentec2b32f49bf1692448633b1217a80a2afdda3742
shell: check for missing wl_shell_surface

get_shell_surface() returns NULL, if the client has not created or has
destroyed the wl_shell_surface object.

All but one use of get_shell_surface() just retrieve the surface type,
so just fall back to SHELL_SURFACE_NORMAL there.

Resize hot-key binding really needs the wl_shell_surface object, as that
is the only way to send configure events. For surfaces without a
wl_shell_surface, simply do not resize them.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
compositor/shell.c