mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
x11: Balance an error trap
We are pushing an error trap, and never popping it from the stack.
This commit is contained in:
parent
255e2dd704
commit
d219bd4d5a
@ -2701,7 +2701,7 @@ drag_context_grab (GdkDragContext *context)
|
||||
|
||||
g_set_object (&x11_context->grab_seat, seat);
|
||||
|
||||
gdk_error_trap_push ();
|
||||
gdk_x11_display_error_trap_push (gdk_window_get_display (x11_context->ipc_window));
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (grab_keys); ++i)
|
||||
{
|
||||
@ -2753,6 +2753,8 @@ drag_context_grab (GdkDragContext *context)
|
||||
}
|
||||
}
|
||||
|
||||
gdk_x11_display_error_trap_pop_ignored (gdk_window_get_display (x11_context->ipc_window));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user