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:
committed by
Kristian Høgsberg
parent
8ae63851dd
commit
4a7409a1f5
+1
-1
@@ -2396,7 +2396,7 @@ frame_handle_status(struct window_frame *frame, struct input *input,
|
|||||||
window->user_data);
|
window->user_data);
|
||||||
else
|
else
|
||||||
display_exit(window->display);
|
display_exit(window->display);
|
||||||
frame_status_clear(frame->frame, FRAME_STATUS_CLOSE);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status & FRAME_STATUS_MOVE) && window->shell_surface) {
|
if ((status & FRAME_STATUS_MOVE) && window->shell_surface) {
|
||||||
|
|||||||
Reference in New Issue
Block a user