Move move/resize event handling to more appropriate location.

SVN revision: 27180
This commit is contained in:
Kim Woelders 2006-11-19 20:43:28 +00:00
parent 1cf7e321ad
commit e1d074a76c
2 changed files with 7 additions and 3 deletions

View File

@ -273,8 +273,6 @@ HandleEvent(XEvent * ev)
Mode.events.py = Mode.events.y;
ModeGetXY(ev->xmotion.root, ev->xmotion.x_root, ev->xmotion.y_root);
Mode.events.on_screen = ev->xmotion.same_screen;
ActionsHandleMotion();
break;
case EnterNotify:
@ -334,7 +332,6 @@ HandleEvent(XEvent * ev)
break;
case ButtonRelease: /* 5 */
SoundPlay("SOUND_BUTTON_RAISE");
ActionsEnd(NULL);
break;
}

View File

@ -2163,6 +2163,13 @@ EwinHandleEventsRoot(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
switch (ev->type)
{
case ButtonRelease:
ActionsEnd(NULL);
break;
case MotionNotify:
ActionsHandleMotion();
break;
case MapRequest:
EwinEventMapRequest(NULL, ev->xmaprequest.window);
break;