summaryrefslogtreecommitdiff
path: root/src/rmd_poll_events.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
commita031634bd64c7f30c4ace5ca06a5a47600b42f47 (patch)
tree919e13ed1ba2e6443fe952288085576322748405 /src/rmd_poll_events.c
parentbd53002a2bf51d48992613601719d180fed09975 (diff)
*: more cosmetic formatting cleanups
Making things a bit more consistent
Diffstat (limited to 'src/rmd_poll_events.c')
-rw-r--r--src/rmd_poll_events.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rmd_poll_events.c b/src/rmd_poll_events.c
index 49f2478..3639751 100644
--- a/src/rmd_poll_events.c
+++ b/src/rmd_poll_events.c
@@ -44,7 +44,6 @@
static int clip_event_area(XDamageNotifyEvent *e, XRectangle *cliprect, XRectangle *res)
{
-
#if 0
printf("got area %x,%x %x,%x\n",
e->area.x,
@@ -52,7 +51,6 @@ static int clip_event_area(XDamageNotifyEvent *e, XRectangle *cliprect, XRectang
e->area.width,
e->area.height);
#endif
-
if ( e->area.x <= cliprect->x &&
e->area.y <= cliprect->y &&
e->area.width >= cliprect->width &&
@@ -100,7 +98,8 @@ static int clip_event_area(XDamageNotifyEvent *e, XRectangle *cliprect, XRectang
/* Try align xrect to even boundaries relative to cliprect,
* this is done for the UV routines which operate at 2x2 rgb pixel granularity.
*/
-static void uv_align(XRectangle *cliprect, XRectangle *xrect) {
+static void uv_align(XRectangle *cliprect, XRectangle *xrect)
+{
XRectangle rel;
rel.x = xrect->x - cliprect->x;
@@ -134,12 +133,12 @@ static void uv_align(XRectangle *cliprect, XRectangle *xrect) {
}
-void rmdInitEventsPolling(ProgData *pdata) {
- Window root_return,
- parent_return,
- *children;
- unsigned int i,
- nchildren;
+void rmdInitEventsPolling(ProgData *pdata)
+{
+ Window root_return,
+ parent_return,
+ *children;
+ unsigned int i, nchildren;
XSelectInput (pdata->dpy, pdata->specs.root, SubstructureNotifyMask);
@@ -168,7 +167,8 @@ void rmdInitEventsPolling(ProgData *pdata) {
}
-void rmdEventLoop(ProgData *pdata) {
+void rmdEventLoop(ProgData *pdata)
+{
int inserts = 0;
XEvent event;
© All Rights Reserved