diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2019-03-08 13:17:27 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2019-03-08 13:17:27 +0000 |
commit | 832a2d6cfe9d042e7f69653cb0e2e3fd9e3be38c (patch) | |
tree | 6d5253b4ad528ce41e04b0318234e8ebd9aa18c5 /app/cwm | |
parent | 3d21f2e5266d6fa9480084cfc93c4a6f82ed1ae8 (diff) |
add parans for readibility
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/xevents.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index 4a452b9c5..8d7a2ec4d 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.139 2019/03/07 14:28:17 okan Exp $ + * $OpenBSD: xevents.c,v 1.140 2019/03/08 13:17:26 okan Exp $ */ /* @@ -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); } } |