[MPlayer-cvslog] r35784 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Fri Jan 18 21:29:02 CET 2013


Author: ib
Date: Fri Jan 18 21:29:02 2013
New Revision: 35784

Log:
Make variables local.

A global scope isn't necessary.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Fri Jan 18 18:53:44 2013	(r35783)
+++ trunk/gui/wm/ws.c	Fri Jan 18 21:29:02 2013	(r35784)
@@ -68,16 +68,6 @@
 static wsWindow *mouse_win;
 static unsigned int mouse_time;
 
-typedef struct {
-    unsigned long flags;
-    unsigned long functions;
-    unsigned long decorations;
-    long input_mode;
-    unsigned long status;
-} MotifWmHints;
-
-static Atom wsMotifHints;
-
 int wsMaxX;                          // Screen width.
 int wsMaxY;                          // Screen height.
 int wsOrgX;                          // Screen origin x.
@@ -1014,14 +1004,21 @@ void wsWindowDestroy(wsWindow *win)
 
 void wsWindowDecoration(wsWindow *win, Bool decor)
 {
-    MotifWmHints wsMotifWmHints;
+    Atom wsMotifHints;
+    struct {
+        unsigned long flags;
+        unsigned long functions;
+        unsigned long decorations;
+        long input_mode;
+        unsigned long status;
+    } wsMotifWmHints;
 
     wsMotifHints = XInternAtom(wsDisplay, "_MOTIF_WM_HINTS", 0);
 
     if (wsMotifHints == None)
         return;
 
-    memset(&wsMotifWmHints, 0, sizeof(MotifWmHints));
+    memset(&wsMotifWmHints, 0, sizeof(wsMotifWmHints));
     wsMotifWmHints.flags = MWM_HINTS_FUNCTIONS | MWM_HINTS_DECORATIONS;
 
     if (decor) {


More information about the MPlayer-cvslog mailing list