mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
prevent double red bordering
This commit is contained in:
parent
1ce688db7d
commit
aff4537ab8
1 changed files with 6 additions and 0 deletions
|
@ -1903,6 +1903,12 @@ focus_win(struct ws_win *win)
|
|||
XGetInputFocus(display, &cur_focus, &rr);
|
||||
if ((cfw = find_window(cur_focus)) != NULL)
|
||||
unfocus_win(cfw);
|
||||
else {
|
||||
/* use larger hammer since the window was killed somehow */
|
||||
TAILQ_FOREACH(cfw, &win->ws->winlist, entry)
|
||||
XSetWindowBorder(display, cfw->id,
|
||||
cfw->ws->r->s->c[SWM_S_COLOR_UNFOCUS].color);
|
||||
}
|
||||
|
||||
win->ws->focus = win;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue