From: Marco Peereboom Date: Thu, 1 Oct 2009 21:15:38 +0000 (+0000) Subject: Make ignore_enter binary. The counter sometimes got off. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=7976b49314c1fb669fcc5668c4932ec9d55e9192;p=spectrwm.git Make ignore_enter binary. The counter sometimes got off. --- 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; } /*