From 6840a556d0df5d80b6e1bc9430052122680986bd Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 26 Aug 2021 18:54:05 +0200 Subject: Property deletion is now handled by get_property --- clipfs.c | 7 +++---- 1 file 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); } -- cgit v1.1