Merge pull request #2353 from psychon/focus_race

Fix a race with setting the focus
This commit is contained in:
mergify[bot] 2018-08-18 15:54:49 +00:00 committed by GitHub
commit 17018118d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1242,7 +1242,6 @@ client_focus_refresh(void)
if(!globalconf.focus.need_update)
return;
globalconf.focus.need_update = false;
if(c && client_on_selected_tags(c))
{
@ -1265,6 +1264,9 @@ client_focus_refresh(void)
*/
xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_PARENT,
win, globalconf.timestamp);
/* Do this last, because client_unban() might set it to true */
globalconf.focus.need_update = false;
}
static void