summaryrefslogtreecommitdiff
path: root/src/vmon.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/vmon.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/vmon.c')
-rw-r--r--src/vmon.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vmon.c b/src/vmon.c
index c554a50..d31af2d 100644
--- a/src/vmon.c
+++ b/src/vmon.c
@@ -383,16 +383,16 @@ static void vmon_process_event(vmon_t *vmon)
XNextEvent(vmon->xserver->display, &ev);
switch (ev.type) {
- case ConfigureNotify:
- vmon_resize(vmon, ev.xconfigure.width, ev.xconfigure.height);
- vwm_overlay_compose(vmon->overlays, vmon->overlay, NULL);
- vwm_overlay_render(vmon->overlays, vmon->overlay, PictOpSrc, vmon->picture, 0, 0, vmon->width, vmon->height);
- break;
- case Expose:
- vwm_overlay_render(vmon->overlays, vmon->overlay, PictOpSrc, vmon->picture, 0, 0, vmon->width, vmon->height);
- break;
- default:
- VWM_TRACE("unhandled event: %x\n", ev.type);
+ case ConfigureNotify:
+ vmon_resize(vmon, ev.xconfigure.width, ev.xconfigure.height);
+ vwm_overlay_compose(vmon->overlays, vmon->overlay, NULL);
+ vwm_overlay_render(vmon->overlays, vmon->overlay, PictOpSrc, vmon->picture, 0, 0, vmon->width, vmon->height);
+ break;
+ case Expose:
+ vwm_overlay_render(vmon->overlays, vmon->overlay, PictOpSrc, vmon->picture, 0, 0, vmon->width, vmon->height);
+ break;
+ default:
+ VWM_TRACE("unhandled event: %x\n", ev.type);
}
}
© All Rights Reserved