# HG changeset patch # User Jordan Miner # Date 1248552219 18000 # Node ID 0577e8738dc8d948c1974917e55ce2eea4dab1fd # Parent 43a88caead16f53a150fbf5d765b78384d7681d5 Handle EnterNotify and LeaveNotify in the X backend, so that if a window is activated or deactivated without the mouse moving, state is still updated. diff -r 43a88caead16 -r 0577e8738dc8 dynamin/gui/x_window.d --- a/dynamin/gui/x_window.d Sat Jul 25 15:01:46 2009 -0500 +++ b/dynamin/gui/x_window.d Sat Jul 25 15:03:39 2009 -0500 @@ -355,8 +355,13 @@ captor.mouseMoved(args); break; case EnterNotify: + auto enterEv = ev.xcrossing; + scope args = new MouseEventArgs(enterEv.x+c.borderSize.left, + enterEv.y+c.borderSize.top, MouseButton.None); + c.mouseMoved(args); break; case LeaveNotify: + setHotControl(null); break; case FocusIn: break;