diff options
author | Aki <please@ignore.pl> | 2021-08-26 18:54:05 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-26 18:54:05 +0200 |
commit | 6840a556d0df5d80b6e1bc9430052122680986bd (patch) | |
tree | a515697175e493d182e2a1c0657d99696ed9acb9 | |
parent | 581a6c22f7deadf11b64f85e9e8e5b5b91978fa0 (diff) | |
download | clipfs-6840a556d0df5d80b6e1bc9430052122680986bd.zip clipfs-6840a556d0df5d80b6e1bc9430052122680986bd.tar.gz clipfs-6840a556d0df5d80b6e1bc9430052122680986bd.tar.bz2 |
Property deletion is now handled by get_property
-rw-r--r-- | clipfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } |