Skip to content

Commit

Permalink
#3822 always call trap pop after calling trap push
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 13, 2023
1 parent e72a44e commit 640b88c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xpra/x11/gtk3/gdk_bindings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,9 @@ cdef object _gw(display, Window xwin):
except TypeError as e:
verbose("cannot get gdk window for %s, %#x: %s", display, xwin, e)
return None
gdk_display_flush(disp)
error = gdk_x11_display_error_trap_pop(disp)
finally:
gdk_display_flush(disp)
error = gdk_x11_display_error_trap_pop(disp)
except Exception as e:
verbose("cannot get gdk window for %s, %#x: %s", display, xwin, e)
if disp:
Expand Down

0 comments on commit 640b88c

Please sign in to comment.