1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

misc update relates to xdnd.

This commit is contained in:
id
1999-05-18 20:40:30 +00:00
parent 16a5105912
commit 5a7a706fc4
4 changed files with 43 additions and 48 deletions

View File

@@ -436,27 +436,7 @@ saveTimestamp(XEvent *event)
case SelectionNotify:
LastTimestamp = event->xselection.time;
#ifdef XDND
wXDNDProcessSelection(&event->xselection);
{
char *retain = scr->xdestring;
for (;retain[0];retain++) {
if (retain[0] < 32) retain[0] = 32;
if (!strncmp(retain, "file:", 5)) {
int i;
for (i=0;i<5;retain[i++]=' ');
}
}
retain = scr->xdestring;
if (scr->xdestring){
if (!strncmp(scr->xdestring, "file:", 5))
scr->xdestring+=5;
}
wDockReceiveDNDDrop(scr,event);
if (retain){
XFree(retain);
scr->xdestring = NULL;
}
}
wXDNDProcessSelection(event);
#endif
break;
}