changeset 15:05bc58d28443

windowinfo: fix parentheses warning Signed-off-by: Nils Gillmann <ng0@n0.is>
author Nils Gillmann <ng0@n0.is>
date Mon, 17 Sep 2018 13:40:27 +0000
parents cd1435e7ca57
children ce7e227953d1
files src/windowinfo.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/windowinfo.c	Mon Sep 17 13:23:51 2018 +0000
+++ b/src/windowinfo.c	Mon Sep 17 13:40:27 2018 +0000
@@ -129,18 +129,18 @@
     Window	w;
     long	eventMask;
 {
-    WindowInfo	*i;
+	WindowInfo	*i;
 
-    i = getWindowInfo (w);
-    if (i) {
-	if (i->uwm_event_mask | eventMask != i->uwm_event_mask) {
-	    i->uwm_event_mask |= eventMask;
-	    if (i->event_mask | i->uwm_event_mask != i->event_mask) {
-		i->event_mask |= i->uwm_event_mask;
-		XSelectInput (dpy, w, i->event_mask);
-	    }
+	i = getWindowInfo (w);
+	if (i) {
+		if ((i->uwm_event_mask | eventMask) != (i->uwm_event_mask)) {
+			i->uwm_event_mask |= eventMask;
+			if (i->event_mask | i->uwm_event_mask != i->event_mask) {
+				i->event_mask |= i->uwm_event_mask;
+				XSelectInput (dpy, w, i->event_mask);
+			}
+		}
 	}
-    }
 }
 
 long foo_masks[] = {