core: Wrap XMapWindow() request with error traps
Other X11 calls happening during the process of assigning a frame to a window are already wrapped with error traps, wrap this as well to avoid possible X11 errors. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2745>
This commit is contained in:
parent
2019536f3c
commit
78a3631d15
@ -143,7 +143,9 @@ meta_window_set_frame_xwindow (MetaWindow *window,
|
||||
x11_display->atom__NET_WM_SYNC_REQUEST_COUNTER,
|
||||
TRUE);
|
||||
|
||||
meta_x11_error_trap_push (x11_display);
|
||||
XMapWindow (x11_display->xdisplay, frame->xwindow);
|
||||
meta_x11_error_trap_pop (x11_display);
|
||||
|
||||
/* Move keybindings to frame instead of window */
|
||||
meta_window_grab_keys (window);
|
||||
|
Loading…
Reference in New Issue
Block a user