From 522d52b58f6a8c29efa915bb1b119f49212e89ee Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 11 Jul 2020 15:36:20 -0700 Subject: *: more formatting cleanups Nothing functionally changed --- recordmydesktop/src/rmd_poll_events.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recordmydesktop/src/rmd_poll_events.c') diff --git a/recordmydesktop/src/rmd_poll_events.c b/recordmydesktop/src/rmd_poll_events.c index 96730fd..49f2478 100644 --- a/recordmydesktop/src/rmd_poll_events.c +++ b/recordmydesktop/src/rmd_poll_events.c @@ -141,7 +141,7 @@ void rmdInitEventsPolling(ProgData *pdata) { unsigned int i, nchildren; - XSelectInput (pdata->dpy,pdata->specs.root, SubstructureNotifyMask); + XSelectInput (pdata->dpy, pdata->specs.root, SubstructureNotifyMask); if (!pdata->args.full_shots) { XQueryTree ( pdata->dpy, @@ -153,8 +153,8 @@ void rmdInitEventsPolling(ProgData *pdata) { for (i = 0; i < nchildren; i++) { XWindowAttributes attribs; - if (XGetWindowAttributes (pdata->dpy,children[i],&attribs)) { - if (!attribs.override_redirect && attribs.depth==pdata->specs.depth) + if (XGetWindowAttributes (pdata->dpy, children[i], &attribs)) { + if (!attribs.override_redirect && attribs.depth == pdata->specs.depth) XDamageCreate( pdata->dpy, children[i], XDamageReportRawRectangles); @@ -174,13 +174,13 @@ void rmdEventLoop(ProgData *pdata) { XEvent event; while (XPending(pdata->dpy)) { - XNextEvent(pdata->dpy,&event); + XNextEvent(pdata->dpy, &event); if (event.type == KeyPress) { XKeyEvent *e = (XKeyEvent *)(&event); if (e->keycode == pdata->pause_key.key) { int i = 0; int found = 0; - for (i=0; i < pdata->pause_key.modnum; i++) { + for (i = 0; i < pdata->pause_key.modnum; i++) { if (pdata->pause_key.mask[i] == e->state) { found = 1; break; -- cgit v1.2.1