summaryrefslogtreecommitdiff
path: root/src/xwindow.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-25 02:04:37 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-25 02:04:37 -0700
commitb5e095e57232731b0c4bc93b33c7d78406ec3b1d (patch)
tree8a656b159fdd7fd149c3c87f073d693e8ab0fc51 /src/xwindow.c
parent7ab5a513926846a3e20ef12d2888c5d2aea501a6 (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/xwindow.c')
-rw-r--r--src/xwindow.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/xwindow.c b/src/xwindow.c
index 1564cfe..3812ff2 100644
--- a/src/xwindow.c
+++ b/src/xwindow.c
@@ -72,18 +72,18 @@ int vwm_xwin_is_mapped(vwm_t *vwm, vwm_xwindow_t *xwin)
return xwin->client_mapped;
switch (vwm->focused_context) {
- case VWM_CONTEXT_SHELF:
- if (vwm->focused_shelf == vwin)
- ret = 1;
- break;
-
- case VWM_CONTEXT_DESKTOP:
- if (vwm->focused_desktop == vwin->desktop && !vwin->shelved)
- ret = 1;
- break;
-
- default:
- VWM_BUG("Unsupported context");
+ case VWM_CONTEXT_SHELF:
+ if (vwm->focused_shelf == vwin)
+ ret = 1;
+ break;
+
+ case VWM_CONTEXT_DESKTOP:
+ if (vwm->focused_desktop == vwin->desktop && !vwin->shelved)
+ ret = 1;
+ break;
+
+ default:
+ VWM_BUG("Unsupported context");
}
return ret;
© All Rights Reserved