mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-14 11:58:09 +02:00
shell: Don't remove grab listener if surface was destroyed
This commit is contained in:
parent
3f79d661a1
commit
47b5dca409
1 changed files with 2 additions and 1 deletions
|
|
@ -231,7 +231,8 @@ shell_grab_init(struct shell_grab *grab,
|
|||
static void
|
||||
shell_grab_finish(struct shell_grab *grab)
|
||||
{
|
||||
wl_list_remove(&grab->shsurf_destroy_listener.link);
|
||||
if (grab->shsurf)
|
||||
wl_list_remove(&grab->shsurf_destroy_listener.link);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue