diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-07 18:08:04 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-07 18:08:04 -0400 |
commit | 47b5dca40934db0dafeb7c6d6fe8a85578077a72 (patch) | |
tree | b4b9b0b0f1aab2192edafc1d6db91886cd0efd83 | |
parent | 3f79d661a14254a4fedce789a6884b41366ae1af (diff) |
shell: Don't remove grab listener if surface was destroyed
-rw-r--r-- | src/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index 85395c4..8eb9819 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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 |