From 7976b49314c1fb669fcc5668c4932ec9d55e9192 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 1 Oct 2009 21:15:38 +0000 Subject: [PATCH] Make ignore_enter binary. The counter sometimes got off. --- scrotwm.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scrotwm.c b/scrotwm.c index db73668..6964df7 100644 --- 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]; - /* - * do the ignore enter dance but undo or sometimes an unwanted - * enter gets discarded - */ ignore_enter = 1; - stack(); focus_win(winfocus); - - ignore_enter = 0; } void @@ -3528,7 +3521,7 @@ enternotify(XEvent *e) if (ignore_enter) { /* eat event(r) to prevent autofocus */ - ignore_enter--; + ignore_enter = 0; return; } /* -- 1.7.10.4