diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2015-02-06 10:15:28 +0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-02-06 17:46:05 -0800 |
commit | bf48e21fa18df9d2c917b8577633107e4b1681de (patch) | |
tree | bf387cfdaaf5fa8cfd0de33f163a6819c0f09cd7 /releasing.txt | |
parent | f10e06c77aee1c27e5f11f02e5ae6e1ae7fd36a5 (diff) | |
download | weston-bf48e21fa18df9d2c917b8577633107e4b1681de.tar.gz |
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>
Diffstat (limited to 'releasing.txt')
0 files changed, 0 insertions, 0 deletions