From 96e15607e8081694b993b7f7d509ef7ab8c75b5a Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 26 Apr 2022 12:30:50 +0200 Subject: [PATCH] clipboard: Fix possibly missing trap popping --- plugins/clipboard/msd-clipboard-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/clipboard/msd-clipboard-manager.c b/plugins/clipboard/msd-clipboard-manager.c index 403195831..8a032eb17 100644 --- a/plugins/clipboard/msd-clipboard-manager.c +++ b/plugins/clipboard/msd-clipboard-manager.c @@ -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,