comparison dynamin/gui/x_window.d @ 25:0577e8738dc8

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.
author Jordan Miner <jminer7@gmail.com>
date Sat, 25 Jul 2009 15:03:39 -0500
parents 43a88caead16
children b48d3f2f570d
comparison
equal deleted inserted replaced
24:43a88caead16 25:0577e8738dc8
353 captor.mouseDragged(args); 353 captor.mouseDragged(args);
354 } else 354 } else
355 captor.mouseMoved(args); 355 captor.mouseMoved(args);
356 break; 356 break;
357 case EnterNotify: 357 case EnterNotify:
358 auto enterEv = ev.xcrossing;
359 scope args = new MouseEventArgs(enterEv.x+c.borderSize.left,
360 enterEv.y+c.borderSize.top, MouseButton.None);
361 c.mouseMoved(args);
358 break; 362 break;
359 case LeaveNotify: 363 case LeaveNotify:
364 setHotControl(null);
360 break; 365 break;
361 case FocusIn: 366 case FocusIn:
362 break; 367 break;
363 case FocusOut: 368 case FocusOut:
364 break; 369 break;