[gnome-settings-daemon] clipboard: fix incremental sending from the clipboard manager
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] clipboard: fix incremental sending from the clipboard manager
- Date: Mon, 20 Jun 2011 13:25:50 +0000 (UTC)
commit f6c9e9d098184ef6f1859a3221d6d0d51ed988e1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jun 14 19:19:06 2011 -0400
clipboard: fix incremental sending from the clipboard manager
When the data to send from the clipboard is bigger than the maximum
allowed X selection size, we set the property value to XA_INCR, to
signal that the data should be sent in incremental chunks.
Unfortunately this never worked, because the manager didn't listen to
the property changes on the requestor window, so it didn't know when to
start sending data.
https://bugzilla.gnome.org/show_bug.cgi?id=652609
plugins/clipboard/gsd-clipboard-manager.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plugins/clipboard/gsd-clipboard-manager.c b/plugins/clipboard/gsd-clipboard-manager.c
index 73d49e4..0ae9482 100644
--- a/plugins/clipboard/gsd-clipboard-manager.c
+++ b/plugins/clipboard/gsd-clipboard-manager.c
@@ -390,6 +390,12 @@ send_incrementally (GsdClipboardManager *manager,
data, items);
if (length == 0) {
+ clipboard_manager_watch_cb (manager,
+ rdata->requestor,
+ False,
+ PropertyChangeMask,
+ NULL);
+
manager->priv->conversions = list_remove (manager->priv->conversions, rdata);
conversion_free (rdata);
}
@@ -545,6 +551,13 @@ convert_clipboard_target (IncrConversion *rdata,
gdk_error_trap_push ();
XGetWindowAttributes (manager->priv->display, rdata->requestor, &atts);
+
+ clipboard_manager_watch_cb (manager,
+ rdata->requestor,
+ True,
+ PropertyChangeMask,
+ NULL);
+
XSelectInput (manager->priv->display, rdata->requestor,
atts.your_event_mask | PropertyChangeMask);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]