Mercurial > mplayer.hg
changeset 35690:f6470f5787b9
Make variables local.
A global scope isn't necessary.
author | ib |
---|---|
date | Fri, 18 Jan 2013 20:29:02 +0000 |
parents | 411ae24eef28 |
children | dfdb25bad545 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 9 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Jan 18 17:53:44 2013 +0000 +++ b/gui/wm/ws.c Fri Jan 18 20:29:02 2013 +0000 @@ -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 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) {