Fix compilation with --disable-own-window (sf.net #2820716)
[monky] / src / x11.c
index e86e96b..eb0cf1f 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -626,6 +626,7 @@ void update_x11info(void)
 
 }
 
+#ifdef OWN_WINDOW
 /* reserve window manager space */
 void set_struts(int sidenum)
 {
@@ -698,3 +699,4 @@ void set_struts(int sidenum)
                }
        }
 }
+#endif /* OWN_WINDOW */