summaryrefslogtreecommitdiff
path: root/src/vwm.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-12 13:11:40 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-14 19:41:48 -0700
commitbc04055653fe64c4e8e109beedf96dd608007a3b (patch)
treeaaf60b45a56f9d5765f6dcf6afa89bd62b9d46e2 /src/vwm.c
parent2373a54d2d52961a841dace71b505d2c20f5c040 (diff)
*: trivial code formatting cleanups
I'm no longer fond of combining one-line conditional statements on the same line as their conditional expression.
Diffstat (limited to 'src/vwm.c')
-rw-r--r--src/vwm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vwm.c b/src/vwm.c
index 1502ea3..38fe193 100644
--- a/src/vwm.c
+++ b/src/vwm.c
@@ -278,7 +278,8 @@ void vwm_process_event(vwm_t *vwm)
default:
if (event.type == randr_event + RRScreenChangeNotify) {
VWM_TRACE("rrscreenchangenotify");
- if (vwm->xinerama_screens) XFree(vwm->xinerama_screens);
+ if (vwm->xinerama_screens)
+ XFree(vwm->xinerama_screens);
vwm->xinerama_screens = XineramaQueryScreens(VWM_XDISPLAY(vwm), &vwm->xinerama_screens_cnt);
vwm_composite_invalidate_root(vwm);
@@ -311,12 +312,14 @@ int main(int argc, char *argv[])
do {
int delay;
- if (vwm_overlays_update(vwm->overlays, &delay)) vwm_composite_repaint_needed(vwm);
+ if (vwm_overlays_update(vwm->overlays, &delay))
+ vwm_composite_repaint_needed(vwm);
XFlush(VWM_XDISPLAY(vwm));
if (!XPending(VWM_XDISPLAY(vwm))) {
- if (poll(&pfd, 1, delay) == 0) break;
+ if (poll(&pfd, 1, delay) == 0)
+ break;
}
vwm_process_event(vwm);
© All Rights Reserved