Combined EnterNotify and LeaveNotify event processing in the UNIX_X11
event loop. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@319 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
91a94e44bc
commit
6f0ae8796a
@ -619,19 +619,12 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
{
|
|
||||||
GETWINDOW( xcrossing );
|
|
||||||
GETMOUSE( xcrossing );
|
|
||||||
INVOKE_WCB( *window, Entry, ( GLUT_ENTERED ) );
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
/* XXX Combine EnterNotify and LeaveNotify */
|
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
{
|
|
||||||
GETWINDOW( xcrossing );
|
GETWINDOW( xcrossing );
|
||||||
GETMOUSE( xcrossing );
|
GETMOUSE( xcrossing );
|
||||||
INVOKE_WCB( *window, Entry, ( GLUT_LEFT ) );
|
INVOKE_WCB( *window, Entry, ( ( EnterNotify == event.type ) ?
|
||||||
}
|
GLUT_ENTERED :
|
||||||
|
GLUT_LEFT ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MotionNotify:
|
case MotionNotify:
|
||||||
|
Reference in New Issue
Block a user