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.
This commit is contained in:
Jason Ekstrand 2013-10-27 21:32:54 -05:00 committed by Kristian Høgsberg
parent 8ae63851dd
commit 4a7409a1f5

View file

@ -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) {