forked from AuroraMiddleware/gtk
x11/dnd: Ignore XErrors from the COW
The DnD code for X11 adds the composite overlay window (aka COW) to the cache. Yet the X11 requests to get and release the COW may trigger XErrors that we ought to ignore otherwise the client will abort. Fixes: #3715
This commit is contained in:
parent
0f5ae95460
commit
39db784704
@ -634,12 +634,14 @@ gdk_window_cache_new (GdkScreen *screen)
|
||||
*/
|
||||
if (gdk_screen_is_composited (screen))
|
||||
{
|
||||
gdk_x11_display_error_trap_push (GDK_X11_SCREEN (screen)->display);
|
||||
cow = XCompositeGetOverlayWindow (xdisplay, GDK_WINDOW_XID (root_window));
|
||||
gdk_window_cache_add (result, cow, 0, 0,
|
||||
gdk_x11_screen_get_width (screen) * GDK_X11_SCREEN(screen)->window_scale,
|
||||
gdk_x11_screen_get_height (screen) * GDK_X11_SCREEN(screen)->window_scale,
|
||||
TRUE);
|
||||
XCompositeReleaseOverlayWindow (xdisplay, GDK_WINDOW_XID (root_window));
|
||||
gdk_x11_display_error_trap_pop_ignored (GDK_X11_SCREEN (screen)->display);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user