blob: 1bb92d66a6c2ca33cc760c4dcb7937a34b1167fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--- a/xutils.h
+++ b/xutils.h
@@ -18,11 +18,11 @@
/*
* 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;
--- a/xutils.c
+++ b/xutils.c
@@ -42,6 +42,15 @@
#include "xutils.h"
+/*
+ * Global variable
+ */
+Display *display;
+Window Root;
+Window iconwin, win;
+int screen;
+int DisplayDepth;
+
/*
* X11 Variables
|