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 (parent:
e4db6aa
)
And kill got_focus
author
Marco Peereboom
<marco@conformal.com>
Tue, 29 Sep 2009 19:01:50 +0000
(19:01 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Tue, 29 Sep 2009 19:01:50 +0000
(19:01 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
de6e2c7
..
9078c6b
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-232,7
+232,6
@@
struct ws_win {
TAILQ_ENTRY(ws_win) entry;
Window id;
struct swm_geometry g;
TAILQ_ENTRY(ws_win) entry;
Window id;
struct swm_geometry g;
- int got_focus;
int floating;
int transient;
int manual;
int floating;
int transient;
int manual;
@@
-1144,7
+1143,6
@@
unfocus_win(struct ws_win *win)
grabbuttons(win, 0);
XSetWindowBorder(display, win->id,
win->ws->r->s->c[SWM_S_COLOR_UNFOCUS].color);
grabbuttons(win, 0);
XSetWindowBorder(display, win->id,
win->ws->r->s->c[SWM_S_COLOR_UNFOCUS].color);
- win->got_focus = 0;
if (win->ws->focus == win) {
win->ws->focus = NULL;
if (win->ws->focus == win) {
win->ws->focus = NULL;
@@
-1179,12
+1177,9
@@
focus_win(struct ws_win *win)
win->ws->focus = win;
if (win->ws->r != NULL) {
win->ws->focus = win;
if (win->ws->r != NULL) {
- if (win->got_focus == 0) {
- XSetWindowBorder(display, win->id,
- win->ws->r->s->c[SWM_S_COLOR_FOCUS].color);
- grabbuttons(win, 1);
- }
- win->got_focus = 1;
+ XSetWindowBorder(display, win->id,
+ win->ws->r->s->c[SWM_S_COLOR_FOCUS].color);
+ grabbuttons(win, 1);
XSetInputFocus(display, win->id,
RevertToPointerRoot, CurrentTime);
}
XSetInputFocus(display, win->id,
RevertToPointerRoot, CurrentTime);
}