shell: forbid multiple wl_shell_surface objects
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 29 Nov 2011 14:05:28 +0000 (16:05 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 4 Dec 2011 19:56:06 +0000 (14:56 -0500)
commitf32f1fc7435e07cf555406822de756da269ebf74
tree3fbb45bb9240098a3e2d9dad8b11269c86d96d2c
parent46229675865ee1bdbbfd80b07c2221679e3f2cb0
shell: forbid multiple wl_shell_surface objects

Do not allow multiple wl_shell_surface objects to be created for a
wl_surface object.

Multiple shell_surface objects would confuse the compositor as they
contain separate instances of the shell-private data.

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