diff options
-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); } |