ignore inferior enternotifies

add anotehr focusdebug print
This commit is contained in:
Dana Jansens 2003-04-07 22:27:02 +00:00
parent 5f53cd5fb8
commit 2dac2cc01b

View file

@ -289,7 +289,9 @@ void event_process(XEvent *e)
event_lasttime = e->xcrossing.time; event_lasttime = e->xcrossing.time;
/* NotifyUngrab occurs when a mouse button is released and the event is /* NotifyUngrab occurs when a mouse button is released and the event is
caused, like when lowering a window */ caused, like when lowering a window */
if (e->xcrossing.mode == NotifyGrab) return; if (e->xcrossing.mode == NotifyGrab ||
e->xcrossing.detail == NotifyInferior)
return;
break; break;
default: default:
event_lasttime = CurrentTime; event_lasttime = CurrentTime;
@ -386,9 +388,14 @@ static void event_handle_client(Client *client, XEvent *e)
client); client);
focus_order[desktop] = g_list_prepend(focus_order[desktop], focus_order[desktop] = g_list_prepend(focus_order[desktop],
client); client);
} else if (focus_follow) } else if (focus_follow) {
#ifdef DEBUG_FOCUS
g_message("EnterNotify on %lx, focusing window",
client->window);
#endif
client_focus(client); client_focus(client);
} }
}
break; break;
case ConfigureRequest: case ConfigureRequest:
/* compress these */ /* compress these */