Skip to content

Commit ecfb42a

Browse files
committed
Delete property on begin and at every Notify to start and continue transfer of INCR.
1 parent db40d23 commit ecfb42a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2022-02-22 Riccardo Mottola <[email protected]>
2+
3+
* Tools/xpbs.m (xSelectionNotify:):
4+
Delete property on begin and at every Notify to start and continue
5+
transfer of INCR.
6+
17
2020-04-26 Ivan Vucica <[email protected]>
28

39
* ANNOUNCE:

Tools/xpbs.m

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,17 +994,22 @@ - (void) xSelectionNotify: (XSelectionEvent*)xEvent
994994
XEvent event;
995995
NSMutableData *imd = nil;
996996
BOOL wait = YES;
997-
997+
998+
// Need to delete the property to start transfer
999+
XDeleteProperty(xDisplay, xEvent->requestor, xEvent->property);
9981000
md = nil;
9991001
while (wait)
10001002
{
10011003
XNextEvent(xDisplay, &event);
1002-
1004+
10031005
if (event.type == PropertyNotify)
10041006
{
10051007
if (event.xproperty.state != PropertyNewValue) continue;
1006-
1008+
10071009
imd = [self getSelectionData: xEvent type: &actual_type];
1010+
1011+
// delete the property to get the next transfer chunk
1012+
XDeleteProperty(xDisplay, xEvent->requestor, xEvent->property);
10081013
if (imd != nil)
10091014
{
10101015
if (md == nil)

0 commit comments

Comments
 (0)