summaryrefslogtreecommitdiff
path: root/plugins/clipboard/msd-clipboard-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/clipboard/msd-clipboard-manager.c')
-rw-r--r--plugins/clipboard/msd-clipboard-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/clipboard/msd-clipboard-manager.c b/plugins/clipboard/msd-clipboard-manager.c
index fb5ddba..d99f04f 100644
--- a/plugins/clipboard/msd-clipboard-manager.c
+++ b/plugins/clipboard/msd-clipboard-manager.c
@@ -404,7 +404,6 @@ convert_clipboard_manager (MsdClipboardManager *manager,
int format;
unsigned long nitems;
unsigned long remaining;
- Atom *targets = NULL;
display = gdk_display_get_default ();
@@ -415,6 +414,8 @@ convert_clipboard_manager (MsdClipboardManager *manager,
*/
finish_selection_request (manager, xev, False);
} else {
+ Atom *targets = NULL;
+
gdk_x11_display_error_trap_push (display);
clipboard_manager_watch_cb (manager,