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

dnd test fix

This commit is contained in:
kojima
2000-04-03 14:14:14 +00:00
parent 567e53c67c
commit d912ddd743

View File

@@ -704,8 +704,8 @@ static void iconMouseStuff(XEvent *event, void *cdata)
switch (event->type) { switch (event->type) {
case ButtonPress: case ButtonPress:
stuff->x = event->xbutton.x_root; stuff->x = event->xbutton.x;
stuff->y = event->xbutton.y_root; stuff->y = event->xbutton.y;
stuff->mouseDown = True; stuff->mouseDown = True;
break; break;
case ButtonRelease: case ButtonRelease:
@@ -715,8 +715,8 @@ static void iconMouseStuff(XEvent *event, void *cdata)
if (!stuff->mouseDown) if (!stuff->mouseDown)
break; break;
if (abs(stuff->x - event->xmotion.x_root)>4 if (abs(stuff->x - event->xmotion.x)>4
|| abs(stuff->y - event->xmotion.y_root)>4) { || abs(stuff->y - event->xmotion.y)>4) {
where = WMGetViewScreenPosition(WMWidgetView(label)); where = WMGetViewScreenPosition(WMWidgetView(label));
@@ -724,7 +724,7 @@ static void iconMouseStuff(XEvent *event, void *cdata)
WMGetLabelImage(label), WMGetLabelImage(label),
NULL, /* XXX */ NULL, /* XXX */
where, where,
wmksize(event->xmotion.x, event->xmotion.y), wmksize(stuff->x, stuff->y),
event, True); event, True);
} }
break; break;