Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1ce688d
)
prevent double red bordering
author
Marco Peereboom
<marco@conformal.com>
Mon, 13 Jun 2011 21:51:47 +0000
(21:51 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Mon, 13 Jun 2011 21:51:47 +0000
(21:51 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
712e532
..
be3ba90
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-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);
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;
win->ws->focus = win;