case EnterNotify:
case LeaveNotify:
event_lasttime = e->xcrossing.time;
+ /* XXX this caused problems before... but i don't remember why. hah.
+ so back it is. if problems arise again, then try filtering on the
+ detail instead of the mode. */
+ if (e->xcrossing.mode != NotifyNormal) return;
break;
}
/* focus state can affect the stacking layer */
client_calc_layer(client);
- focus_set_client(client);
+ if (focus_client != client)
+ focus_set_client(client);
break;
case FocusOut:
client->focused = FALSE;