Selection transfer: Change event mask after append
When a selection transfer is done, we are no longer interested in events from the selection window. However, this happens after we set the property to indicate end of transfer, not before. The (untested) theory here is that this should make selection transfers from AwesomeWM to AwesomeWM, i.e. internal transfers, work. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
18dd22811e
commit
6d7014ca68
|
@ -128,12 +128,12 @@ transfer_continue_incremental(lua_State *L, int ud)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* End of transfer */
|
/* End of transfer */
|
||||||
xcb_change_window_attributes(globalconf.connection,
|
|
||||||
transfer->requestor, XCB_CW_EVENT_MASK,
|
|
||||||
(uint32_t[]) { 0 });
|
|
||||||
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
||||||
transfer->requestor, transfer->property, UTF8_STRING, 8,
|
transfer->requestor, transfer->property, UTF8_STRING, 8,
|
||||||
0, NULL);
|
0, NULL);
|
||||||
|
xcb_change_window_attributes(globalconf.connection,
|
||||||
|
transfer->requestor, XCB_CW_EVENT_MASK,
|
||||||
|
(uint32_t[]) { 0 });
|
||||||
transfer_done(L, transfer);
|
transfer_done(L, transfer);
|
||||||
} else {
|
} else {
|
||||||
/* Send next piece of data */
|
/* Send next piece of data */
|
||||||
|
|
Loading…
Reference in New Issue