toytoolkit: Don't segfault on window close

Without this commit, the client will segmentation fault due to accessing
the frame after everything has been destroyed.
dev
Jason Ekstrand 11 years ago committed by Kristian Høgsberg
parent 8ae63851dd
commit 4a7409a1f5
  1. 2
      clients/window.c

@ -2396,7 +2396,7 @@ frame_handle_status(struct window_frame *frame, struct input *input,
window->user_data);
else
display_exit(window->display);
frame_status_clear(frame->frame, FRAME_STATUS_CLOSE);
return;
}
if ((status & FRAME_STATUS_MOVE) && window->shell_surface) {

Loading…
Cancel
Save