commit | 47b5dca40934db0dafeb7c6d6fe8a85578077a72 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Thu Jun 07 18:08:04 2012 -0400 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Jun 07 18:08:04 2012 -0400 |
tree | b4b9b0b0f1aab2192edafc1d6db91886cd0efd83 | |
parent | 3f79d661a14254a4fedce789a6884b41366ae1af [diff] [blame] |
shell: Don't remove grab listener if surface was destroyed
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 @@ 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