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:
d788faf
)
Make ignore_enter binary. The counter sometimes got off.
author
Marco Peereboom
<marco@conformal.com>
Thu, 1 Oct 2009 21:15:38 +0000
(21:15 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Thu, 1 Oct 2009 21:15:38 +0000
(21:15 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
db73668
..
6964df7
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-1476,16
+1476,9
@@
cycle_layout(struct swm_region *r, union arg *args)
if (ws->cur_layout->l_stack == NULL)
ws->cur_layout = &layouts[0];
if (ws->cur_layout->l_stack == NULL)
ws->cur_layout = &layouts[0];
- /*
- * do the ignore enter dance but undo or sometimes an unwanted
- * enter gets discarded
- */
ignore_enter = 1;
ignore_enter = 1;
-
stack();
focus_win(winfocus);
stack();
focus_win(winfocus);
-
- ignore_enter = 0;
}
void
}
void
@@
-3528,7
+3521,7
@@
enternotify(XEvent *e)
if (ignore_enter) {
/* eat event(r) to prevent autofocus */
if (ignore_enter) {
/* eat event(r) to prevent autofocus */
- ignore_enter--;
+ ignore_enter = 0;
return;
}
/*
return;
}
/*