diff --git a/wmsysmon/src/wmgeneral.c b/wmsysmon/src/wmgeneral.c index 802e4e7..a3e56b4 100644 --- a/wmsysmon/src/wmgeneral.c +++ b/wmsysmon/src/wmgeneral.c @@ -25,6 +25,12 @@ XpmIcon wmgen; Pixmap pixmask; + /*******************/ + /* Global variable */ +/*******************/ + +Display *display; + static void GetXPM(XpmIcon *, char **); static Pixel GetColor(char *); void RedrawWindow(void); diff --git a/wmsysmon/src/wmgeneral.h b/wmsysmon/src/wmgeneral.h index 2610fcc..ab56918 100644 --- a/wmsysmon/src/wmgeneral.h +++ b/wmsysmon/src/wmgeneral.h @@ -34,12 +34,6 @@ typedef struct { unsigned int dirty_w, dirty_h; } XpmIcon; - /*******************/ - /* Global variable */ -/*******************/ - -Display *display; - /***********************/ /* Function Prototypes */ /***********************/ diff --git a/wmsysmon/src/wmsysmon.c b/wmsysmon/src/wmsysmon.c index cac32f5..bbb5335 100644 --- a/wmsysmon/src/wmsysmon.c +++ b/wmsysmon/src/wmsysmon.c @@ -100,6 +100,8 @@ int swap_l; /* line in /proc/stat "swap" is on */ int meter[4][2]; +extern Display *display; + typedef enum { NEWER_2_6 = 0,