mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
Delete property on begin and at every Notify to start and continue transfer of INCR.
This commit is contained in:
parent
db40d23ed6
commit
ecfb42a893
2 changed files with 14 additions and 3 deletions
|
@ -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:
|
||||
|
|
11
Tools/xpbs.m
11
Tools/xpbs.m
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue