frame: Handle X11 errors earlier on frame setting
Avoid changing the stack information if we fail earlier than that
This commit is contained in:
parent
1e02c06298
commit
24e6843ab7
1 changed files with 9 additions and 0 deletions
|
@ -121,6 +121,15 @@ meta_window_x11_set_frame_xwindow (MetaWindow *window,
|
|||
if (META_X11_DISPLAY_HAS_SHAPE (x11_display))
|
||||
XShapeSelectInput (x11_display->xdisplay, frame->xwindow, ShapeNotifyMask);
|
||||
|
||||
if (mtk_x11_error_trap_pop_with_return (x11_display->xdisplay))
|
||||
{
|
||||
meta_topic (META_DEBUG_WINDOW_STATE,
|
||||
"Setting up frame for window %s failed", window->desc);
|
||||
return;
|
||||
}
|
||||
|
||||
mtk_x11_error_trap_push (x11_display->xdisplay);
|
||||
|
||||
meta_x11_display_register_x_window (x11_display, &frame->xwindow, window);
|
||||
|
||||
meta_stack_tracker_record_remove (window->display->stack_tracker,
|
||||
|
|
Loading…
Add table
Reference in a new issue