From a9fc2665bf728e3300dc0911f4fb42d6fc3a6b36 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 7 Aug 2014 15:54:49 -0400 Subject: [PATCH 1/1] bigger bar, no horiz-stack, no wrap on focus-master --- spectrwm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 493a328..f81d1a2 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -367,7 +367,7 @@ enum { /* dialog windows */ double dialog_ratio = 0.6; /* status bar */ -#define SWM_BAR_MAX (256) +#define SWM_BAR_MAX (356) #define SWM_BAR_JUSTIFY_LEFT (0) #define SWM_BAR_JUSTIFY_CENTER (1) #define SWM_BAR_JUSTIFY_RIGHT (2) @@ -520,7 +520,7 @@ struct layout { } layouts[] = { /* stack, configure */ { vertical_stack, vertical_config, 0, plain_stacker }, - { horizontal_stack, horizontal_config, 0, plain_stacker }, +// { horizontal_stack, horizontal_config, 0, plain_stacker }, { max_stack, NULL, SWM_L_MAPONFOCUS | SWM_L_FOCUSPREV, plain_stacker }, { NULL, NULL, 0, NULL }, @@ -529,7 +529,7 @@ struct layout { /* position of max_stack mode in the layouts array, index into layouts! */ #define SWM_V_STACK (0) #define SWM_H_STACK (1) -#define SWM_MAX_STACK (2) +#define SWM_MAX_STACK (1) #define SWM_H_SLICE (32) #define SWM_V_SLICE (32) @@ -4325,7 +4325,7 @@ focus(struct swm_region *r, union arg *args) winfocus = TAILQ_FIRST(wl); if (winfocus == cur_focus) - winfocus = cur_focus->ws->focus_prev; + return; break; case SWM_ARG_ID_FOCUSURGENT: /* Search forward for the next urgent window. */ -- 1.7.10.4