Focus: Tweak request serial number check logic

Too many Enter events were ignored.
This commit is contained in:
Kim Woelders 2021-03-14 18:39:33 +01:00
parent 01f17e409e
commit 136f37f0b9
1 changed files with 3 additions and 1 deletions

View File

@ -524,6 +524,7 @@ FocusToEWin(EWin * ewin, int why)
focus_pending_new = ewin;
focus_pending_why = why;
focus_pending_ewin = ewin;
focus_request = (int)NextRequest(disp) - 1;
break;
default:
@ -531,6 +532,7 @@ FocusToEWin(EWin * ewin, int why)
break;
focus_pending_why = why;
focus_pending_ewin = ewin;
focus_request = (int)NextRequest(disp) - 1;
break;
case FOCUS_EWIN_UNMAP:
@ -547,7 +549,6 @@ FocusToEWin(EWin * ewin, int why)
focus_pending_new = NULL;
break;
}
focus_request = (int)NextRequest(disp) - 1;
}
static void
@ -559,6 +560,7 @@ FocusSet(void)
doFocusToEwin(focus_pending_ewin, focus_pending_why);
focus_pending_why = 0;
focus_pending_ewin = focus_pending_new = NULL;
focus_request = 0;
}
void