Delete property on begin and at every Notify to start and continue transfer of INCR.

This commit is contained in:
Riccardo Mottola 2022-02-22 00:09:00 +01:00
parent db40d23ed6
commit ecfb42a893
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2022-02-22 Riccardo Mottola <rm@gnu.org>
* Tools/xpbs.m (xSelectionNotify:):
Delete property on begin and at every Notify to start and continue
transfer of INCR.
2020-04-26 Ivan Vucica <ivan@vucica.net>
* ANNOUNCE:

View file

@ -994,17 +994,22 @@ xErrorHandler(Display *d, XErrorEvent *e)
XEvent event;
NSMutableData *imd = nil;
BOOL wait = YES;
// Need to delete the property to start transfer
XDeleteProperty(xDisplay, xEvent->requestor, xEvent->property);
md = nil;
while (wait)
{
XNextEvent(xDisplay, &event);
if (event.type == PropertyNotify)
{
if (event.xproperty.state != PropertyNewValue) continue;
imd = [self getSelectionData: xEvent type: &actual_type];
// delete the property to get the next transfer chunk
XDeleteProperty(xDisplay, xEvent->requestor, xEvent->property);
if (imd != nil)
{
if (md == nil)