break;
case LeaveNotify:
+ if( event->xcrossing.mode != NotifyNormal ) break;
if( cursor_entered && event->xcrossing.window == win ) {
cursor_entered = 0;
}
break;
case EnterNotify:
+ if( event->xcrossing.mode != NotifyNormal ) break;
if( !cursor_entered && event->xcrossing.window == win ) {
if( !event->xcrossing.focus && get_resources()->grab_input_focus ) {
XSetInputFocus(display, win, RevertToParent, CurrentTime);