be more careful about ignoring focusin/out event pairs

This commit is contained in:
Dana Jansens 2003-05-10 15:51:44 +00:00
parent 6c431d3a45
commit bd6d80f168

View file

@ -313,7 +313,8 @@ static gboolean event_ignore(XEvent *e, Client *client)
#endif
/* is the focused window getting a FocusOut/In back to
itself? */
if (fe.xfocus.window == e->xfocus.window) {
if (fe.xfocus.window == e->xfocus.window &&
!event_ignore(&fe, client)) {
#ifdef DEBUG_FOCUS
g_message("focused window got an Out/In back to "
"itself IGNORED both");