Fix compilation without --enable-argb
authorPavel Labath <pavelo@centrum.sk>
Wed, 3 Feb 2010 21:36:04 +0000 (22:36 +0100)
committerPavel Labath <pavelo@centrum.sk>
Wed, 3 Feb 2010 21:36:04 +0000 (22:36 +0100)
Bug reported by zaphire

src/x11.c
src/x11.h

index fff366d..dcb5df1 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -53,9 +53,9 @@ int use_xdbe;
 
 #ifdef USE_ARGB
 int use_argb_visual;
-int own_window_argb_value;
 int have_argb_visual;
 #endif /* USE_ARGB */
+int own_window_argb_value;
 
 /* some basic X11 stuff */
 Display *display = NULL;
index 4e8e982..cb45b77 100644 (file)
--- a/src/x11.h
+++ b/src/x11.h
@@ -80,9 +80,9 @@ extern int use_xft;
 extern int use_argb_visual;
 /* 1 if use_argb_visual=1 and argb visual was found, otherwise 0 */
 extern int have_argb_visual;
+#endif
 /* range of 0-255 for alpha */
 extern int own_window_argb_value;
-#endif
 
 extern Display *display;
 extern int display_width;