x11: Balance an error trap

We are pushing an error trap, and never popping it from the stack.
This commit is contained in:
Emmanuele Bassi 2018-02-11 14:50:27 +00:00
parent 255e2dd704
commit d219bd4d5a

View File

@ -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;
}