diff --git a/wmifinfo/xutils.c b/wmifinfo/xutils.c index 92050fd..ed40202 100644 --- a/wmifinfo/xutils.c +++ b/wmifinfo/xutils.c @@ -41,6 +41,12 @@ #include "xutils.h" +Display *display; +Window Root; +Window iconwin, win; +int screen; +int DisplayDepth; + /* * X11 Variables diff --git a/wmifinfo/xutils.h b/wmifinfo/xutils.h index fcd25f6..cf1ef5e 100644 --- a/wmifinfo/xutils.h +++ b/wmifinfo/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;