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