X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=5757fc3f146c83514413dce515a766678488926d;hb=961486fa30d3040ac5b9316dfb913d222a321bb1;hp=6c9b2db6d906d964b2c77dca1b6df4ac943c7074;hpb=f0280ca20a2e85ec3d9f5388b363ef79cb459a31;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index 6c9b2db..5757fc3 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -2538,13 +2538,8 @@ focus_prev(struct ws_win *win) winfocus = TAILQ_LAST(wl, ws_win_list); if (winfocus == NULL || winfocus == win) winfocus = TAILQ_NEXT(cur_focus, entry); -done: - if (winfocus == winlostfocus || winfocus == NULL) { - /* update the bar so that title/class/name will be cleared. */ - bar_check_opts(); - return; - } +done: focus_magic(winfocus); } @@ -2648,11 +2643,6 @@ focus(struct swm_region *r, union arg *args) default: return; } - if (winfocus == winlostfocus || winfocus == NULL) { - /* update the bar so that title/class/name will be cleared. */ - bar_check_opts(); - return; - } focus_magic(winfocus); } @@ -6011,7 +6001,7 @@ focus_magic(struct ws_win *win) if (win->child_trans->take_focus) client_msg(win, takefocus); } else { - /* make sure transient hasn't dissapeared */ + /* make sure transient hasn't disappeared */ if (validate_win(win->child_trans) == 0) { focus_win(win->child_trans); if (win->child_trans->take_focus)