desktop-shell: Don't crash on zoom without a pointer in the seat
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 6 Jan 2015 20:28:13 +0000 (14:28 -0600)
committerBryce Harrington <bryce@osg.samsung.com>
Fri, 30 Jan 2015 22:11:29 +0000 (14:11 -0800)
commit7ef3bed03cee03a746f739c30320a0599be1ea0c
tree9c6013eea4ef408c3cdad442f35b0ffeda07af96
parent8771a14ff38b7c568e3e3fe99fef8681f5792ad3
desktop-shell: Don't crash on zoom without a pointer in the seat

The zoom effect zooms at the seat's current pointer location.  When no
pointer is present the zoom key bindings cause a crash.

Instead, check for the absence of a pointer and log a warning.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
desktop-shell/shell.c