From b5e095e57232731b0c4bc93b33c7d78406ec3b1d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 25 Mar 2017 02:04:37 -0700 Subject: *: 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. --- src/vmon.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/vmon.c') 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); } } -- cgit v1.2.3