weston/desktop-shell
Jonas Ådahl bf48e21fa1 desktop-shell: Fail if get_xdg_surface is called on an xdg_surface
If a client calls xdg_shell.get_xdg_surface on a surface that is already
an xdg_surface would, prior to this patch, succeed, but cause weston to
crash later when trying to configure. This patch instead sends a role
error to the client complaining that it already is an xdg_surface.

Note that .._set_role() only fails when changing roles, not when setting
the same role twice.

The same is done for xdg_popup.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-02-06 17:46:05 -08:00
..
exposay.c compositor: keep track of the weston_layer a weston_view is in 2014-07-23 12:34:33 -07:00
input-panel.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
shell.c desktop-shell: Fail if get_xdg_surface is called on an xdg_surface 2015-02-06 17:46:05 -08:00
shell.h shell: quit weston, if weston-desktop-shell dies early 2014-09-01 10:18:59 +03:00