window: do not crash without wl_shell
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 29 Nov 2011 08:25:08 +0000 (10:25 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 4 Dec 2011 19:55:40 +0000 (14:55 -0500)
commit6b2dc9119ecb0f585746e38d345a3d002423b2e6
tree34a3e61c3eb3acc626c764907a37e7f456a2bb84
parent92a0dc455aa8df4086a2ccb3d05a513ec415079d
window: do not crash without wl_shell

Since it is the desktop-shell plugin in the compositor that offers both
wl_shell global interface and wl_shell_surface interface, those are not
available on the tablet-shell plugin.

The tablet-shell client uses the toytoolkit, so toytoolkit must work
somehow even without wl_shell.

Turn all operations in toytoolkit that would require wl_shell or
wl_shell_surface into no-ops.

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