X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=a6aa81fc17e54f5f2e7d750d1d0c0c90e88e946f;hb=840c2ac2b668265acfd06f73ac2863c3ea111bbe;hp=adb386dbbb32d77aed0400c53a3840724899c939;hpb=13f0f8ce2e4b30e0332a6060778fdd018e5c88c7;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index adb386d..a6aa81f 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1419,14 +1419,19 @@ void cycle_layout(struct swm_region *r, union arg *args) { struct workspace *ws = r->ws; + struct ws_win *winfocus; DNPRINTF(SWM_D_EVENT, "cycle_layout: workspace: %d\n", ws->idx); + winfocus = ws->focus; + ws->cur_layout++; if (ws->cur_layout->l_stack == NULL) ws->cur_layout = &layouts[0]; + ignore_enter = 1; stack(); + focus_win(winfocus); } void