summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-26 18:54:05 +0200
committerAki <please@ignore.pl>2021-08-26 18:54:05 +0200
commit6840a556d0df5d80b6e1bc9430052122680986bd (patch)
treea515697175e493d182e2a1c0657d99696ed9acb9
parent581a6c22f7deadf11b64f85e9e8e5b5b91978fa0 (diff)
downloadclipfs-6840a556d0df5d80b6e1bc9430052122680986bd.zip
clipfs-6840a556d0df5d80b6e1bc9430052122680986bd.tar.gz
clipfs-6840a556d0df5d80b6e1bc9430052122680986bd.tar.bz2
Property deletion is now handled by get_property
-rw-r--r--clipfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/clipfs.c b/clipfs.c
index 236a36e..10a7dcb 100644
--- a/clipfs.c
+++ b/clipfs.c
@@ -103,9 +103,9 @@ void update_selection(const int i)
xcb_selection_notify_event_t * n = (xcb_selection_notify_event_t *) e;
if (x[i].atom == n->selection && XCB_NONE != n->property)
{
- xcb_get_property_cookie_t pcookie = xcb_get_property(
- c, 0, w, TARGET_PROPERTY, XCB_ATOM_ANY, 0, UINT32_MAX);
- xcb_get_property_reply_t * reply = xcb_get_property_reply(c, pcookie, NULL);
+ xcb_get_property_cookie_t cookie = xcb_get_property(
+ c, 1, w, TARGET_PROPERTY, XCB_ATOM_ANY, 0, UINT32_MAX);
+ xcb_get_property_reply_t * reply = xcb_get_property_reply(c, cookie, NULL);
if (reply)
{
const int len = xcb_get_property_value_length(reply);
@@ -114,7 +114,6 @@ void update_selection(const int i)
x[i].len = 0;
x[i].len = len;
memcpy(x[i].data, xcb_get_property_value(reply), len);
- xcb_delete_property(c, n->requestor, n->property);
done = 1;
free(reply);
}