clarify what the preprocessor define does here
authorPhil Sutter <n0-1@freewrt.org>
Sun, 31 May 2009 16:40:07 +0000 (18:40 +0200)
committerPhil Sutter <n0-1@freewrt.org>
Thu, 4 Jun 2009 19:46:45 +0000 (21:46 +0200)
src/x11.c

index 4a36118..6bef11e 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -496,13 +496,12 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
        } */
 #endif
 
+       XSelectInput(display, window.window, ExposureMask
 #ifdef OWN_WINDOW
-       XSelectInput(display, window.window, ExposureMask |
-               (own_window ? (StructureNotifyMask | PropertyChangeMask |
-               ButtonPressMask | ButtonReleaseMask) : 0));
-#else
-       XSelectInput(display, window.window, ExposureMask);
+               | (own_window ? (StructureNotifyMask | PropertyChangeMask |
+               ButtonPressMask | ButtonReleaseMask) : 0)
 #endif
+               );
 }
 
 static Window find_subwindow(Window win, int w, int h)