Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37854291
en ru br
ALT Linux repos
S:0.7.8-alt1
5.0: 0.7.7-alt1
4.1: 0.7.7-alt1
4.0: 0.7.7-alt1
3.0: 0.7.6-alt4

Group :: Graphical desktop/Window Maker
RPM: wmsysmon

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: wmsysmon-0.7.8-GlobalVarDefinition.patch
Download


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,
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin