diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 02:04:37 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 02:04:37 -0700 |
commit | b5e095e57232731b0c4bc93b33c7d78406ec3b1d (patch) | |
tree | 8a656b159fdd7fd149c3c87f073d693e8ab0fc51 /src/window.c | |
parent | 7ab5a513926846a3e20ef12d2888c5d2aea501a6 (diff) |
*: restore old indentation of switch cases
In the course of applying the new style over the rest of the code I
decided it's obnoxiouos and prefer the old way of indenting the cases
one level from the switch. I know it wastes horizontal space and can
see the value of flattening the cases with the switch, but once you
start having variables at the start of the switch body, and blocked
cases, it just starts becoming quite unattractive without the indentation.
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c index 4d4463b..ba8d0b4 100644 --- a/src/window.c +++ b/src/window.c @@ -83,15 +83,15 @@ vwm_window_t * vwm_win_lookup(vwm_t *vwm, Window win) vwm_window_t * vwm_win_focused(vwm_t *vwm) { switch (vwm->focused_context) { - case VWM_CONTEXT_SHELF: - return vwm->focused_shelf; + case VWM_CONTEXT_SHELF: + return vwm->focused_shelf; - case VWM_CONTEXT_DESKTOP: - return vwm->focused_desktop->focused_window; + case VWM_CONTEXT_DESKTOP: + return vwm->focused_desktop->focused_window; - default: - VWM_BUG("Unsupported context"); - assert(0); + default: + VWM_BUG("Unsupported context"); + assert(0); } } |