win: break win_set_focused into 2 functions

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-05-24 23:13:24 +01:00
parent 51476cafa4
commit 98d351ecf6
3 changed files with 18 additions and 19 deletions

View File

@ -344,7 +344,7 @@ void recheck_focus(session_t *ps) {
// And we set the focus state here
if (w) {
win_set_focused(ps, w, true);
win_set_focused(ps, w);
return;
}
}
@ -864,7 +864,7 @@ void update_ewmh_active_win(session_t *ps) {
// Mark the window focused. No need to unfocus the previous one.
if (w) {
win_set_focused(ps, w, true);
win_set_focused(ps, w);
}
}