workspaces: don't segfault on invalid move_surface_to_workspace request
authorPhilipp Brüschweiler <blei42@gmail.com>
Sat, 1 Sep 2012 14:03:05 +0000 (16:03 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 4 Sep 2012 19:56:24 +0000 (15:56 -0400)
commit067abf67cd1f08f4d2692a6b42b8331264c75397
treeb710f46d2927bddf84a48f7fb5576d91bf1fdd8f
parent8538b22ff4ad8879b4e3288be053508167562859
workspaces: don't segfault on invalid move_surface_to_workspace request

Also fixes the off-by-one in toytoolkit that exposed the issue.
clients/window.c
src/shell.c