shell: Don't remove grab listener if surface was destroyed

Kristian Høgsberg 13 years ago
parent 3f79d661a1
commit 47b5dca409
  1. 3
      src/shell.c

@ -231,7 +231,8 @@ shell_grab_init(struct shell_grab *grab,
static void static void
shell_grab_finish(struct shell_grab *grab) 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 static void

Loading…
Cancel
Save