Skip to content

Commit

Permalink
clipboard: Fix possibly missing trap popping
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendling committed Apr 26, 2022
1 parent 69d147f commit 96e1560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/clipboard/msd-clipboard-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ convert_clipboard_manager (MsdClipboardManager *manager,
if (display && gdk_x11_display_error_trap_pop (display) != Success)
return;

if (display)
gdk_x11_display_error_trap_push (display);

if (xev->xselectionrequest.property != None) {
if (display)
gdk_x11_display_error_trap_push (display);

XGetWindowProperty (manager->priv->display,
xev->xselectionrequest.requestor,
xev->xselectionrequest.property,
Expand Down

0 comments on commit 96e1560

Please sign in to comment.