X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=6964df7b77f0aacff724cececdad918f7e424e6f;hb=7976b49314c1fb669fcc5668c4932ec9d55e9192;hp=db736683a97f03cd082bc4082cfd5c3def91601e;hpb=d788faf4cf5b92877d0fffd2576d05974e5f555b;p=spectrwm.git 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; } /*