diff --git a/wmmoonclock/src/xutils.c b/wmmoonclock/src/xutils.c index b313d53..dc12f93 100644 --- a/wmmoonclock/src/xutils.c +++ b/wmmoonclock/src/xutils.c @@ -40,6 +40,15 @@ +/* + * Global variable + */ +Display *display; +Window Root; +Window iconwin, win; +int screen; +int DisplayDepth; + /* * X11 Variables */ diff --git a/wmmoonclock/src/xutils.h b/wmmoonclock/src/xutils.h index f9fc538..5edebec 100644 --- a/wmmoonclock/src/xutils.h +++ b/wmmoonclock/src/xutils.h @@ -20,11 +20,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;