diff options
author | okan <okan> | 2019-03-08 13:17:26 +0000 |
---|---|---|
committer | okan <okan> | 2019-03-08 13:17:26 +0000 |
commit | 2a3c2b5231e42691580c6ad90d82980e84cd5302 (patch) | |
tree | e4c00536380a37349274aac8b10541f558b54658 /xevents.c | |
parent | 7c45b87622c069a176359df3c632086540a7fe3f (diff) | |
download | cwm-2a3c2b5231e42691580c6ad90d82980e84cd5302.tar.gz cwm-2a3c2b5231e42691580c6ad90d82980e84cd5302.tar.xz cwm-2a3c2b5231e42691580c6ad90d82980e84cd5302.zip |
add parans for readibility
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xevents.c b/xevents.c index 8bbd525..cdbfdfc 100644 --- a/xevents.c +++ b/xevents.c @@ -249,7 +249,7 @@ xev_handle_buttonpress(XEvent *ee) switch (mb->context) { case CWM_CONTEXT_CC: if (((cc = client_find(e->window)) == NULL) && - (cc = client_current(NULL)) == NULL) + ((cc = client_current(NULL)) == NULL)) return; (*mb->callback)(cc, mb->cargs); break; @@ -318,7 +318,7 @@ xev_handle_keypress(XEvent *ee) switch (kb->context) { case CWM_CONTEXT_CC: if (((cc = client_find(e->window)) == NULL) && - (cc = client_current(NULL)) == NULL) + ((cc = client_current(NULL)) == NULL)) return; (*kb->callback)(cc, kb->cargs); break; @@ -479,9 +479,9 @@ xev_process(void) while (XPending(X_Dpy)) { XNextEvent(X_Dpy, &e); - if (e.type - Conf.xrandr_event_base == RRScreenChangeNotify) + if ((e.type - Conf.xrandr_event_base) == RRScreenChangeNotify) xev_handle_randr(&e); - else if (e.type < LASTEvent && xev_handlers[e.type] != NULL) + else if ((e.type < LASTEvent) && (xev_handlers[e.type] != NULL)) (*xev_handlers[e.type])(&e); } } |