summaryrefslogtreecommitdiff
path: root/plugins/clipboard
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/clipboard')
-rw-r--r--plugins/clipboard/msd-clipboard-manager.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/clipboard/msd-clipboard-manager.c b/plugins/clipboard/msd-clipboard-manager.c
index 93b1858..770cfe7 100644
--- a/plugins/clipboard/msd-clipboard-manager.c
+++ b/plugins/clipboard/msd-clipboard-manager.c
@@ -151,7 +151,11 @@ send_selection_notify (MsdClipboardManager *manager,
(XEvent *)&notify);
XSync (manager->priv->display, False);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
}
static void
@@ -178,7 +182,11 @@ finish_selection_request (MsdClipboardManager *manager,
False, NoEventMask, (XEvent *) &notify);
XSync (manager->priv->display, False);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
}
static int
@@ -554,7 +562,11 @@ convert_clipboard_target (IncrConversion *rdata,
XSync (manager->priv->display, False);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
}
}
}