Description: Fix multiple definitions of several variables.
Author: Jeremy Sowden <jeremy@azazel.net>
Last-Update: 2020-04-17
Bug-Debian: https://bugs.debian.org/957944

--- a/Src/xutils.c
+++ b/Src/xutils.c
@@ -40,6 +40,15 @@
 #include "xutils.h"
 
 
+/*
+ * Global variables.
+ */
+Display		*display;
+Window          Root;
+Window          iconwin, win;
+int             screen;
+int             DisplayDepth;
+
 
 /*
  *   X11 Variables 
diff --git a/Src/xutils.h b/Src/xutils.h
index 5b6231f362df..40698757530c 100644
--- a/Src/xutils.h
+++ b/Src/xutils.h
@@ -18,11 +18,11 @@ typedef struct {
 /*
  *   Global variable
  */
-Display		*display;
-Window          Root;
-Window          iconwin, win;
-int             screen; 
-int             DisplayDepth;
+extern Display		*display;
+extern Window          Root;
+extern Window          iconwin, win;
+extern int             screen;
+extern int             DisplayDepth;
 
 
 
-- 
2.25.1

