[MPlayer-cvslog] r35591 - in trunk/gui: interface.c ui/actions.c wm/ws.c wm/ws.h
ib
subversion at mplayerhq.hu
Tue Dec 4 19:55:24 CET 2012
Author: ib
Date: Tue Dec 4 19:55:24 2012
New Revision: 35591
Log:
Change parameter of wsWindowDecoration().
It's boolean, so don't use long.
Additionally, choose better name.
Modified:
trunk/gui/interface.c
trunk/gui/ui/actions.c
trunk/gui/wm/ws.c
trunk/gui/wm/ws.h
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Tue Dec 4 19:44:54 2012 (r35590)
+++ trunk/gui/interface.c Tue Dec 4 19:55:24 2012 (r35591)
@@ -207,7 +207,7 @@ void guiInit(void)
wsSetIcon(wsDisplay, guiApp.videoWindow.WindowID, &guiIcon);
if (!guiApp.mainDecoration)
- wsWindowDecoration(&guiApp.mainWindow, 0);
+ wsWindowDecoration(&guiApp.mainWindow, False);
wsVisibleWindow(&guiApp.mainWindow, wsShowWindow);
Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c Tue Dec 4 19:44:54 2012 (r35590)
+++ trunk/gui/ui/actions.c Tue Dec 4 19:55:24 2012 (r35591)
@@ -245,7 +245,7 @@ void uiChangeSkin(char *name)
wsXDNDMakeAwareness(&guiApp.mainWindow);
if (!guiApp.mainDecoration)
- wsWindowDecoration(&guiApp.mainWindow, 0);
+ wsWindowDecoration(&guiApp.mainWindow, False);
wsVisibleWindow(&guiApp.mainWindow, wsShowWindow);
mainVisible = True;
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Tue Dec 4 19:44:54 2012 (r35590)
+++ trunk/gui/wm/ws.c Tue Dec 4 19:55:24 2012 (r35591)
@@ -168,7 +168,7 @@ enum PixelFormat out_pix_fmt = PIX_FMT_N
#define MWM_TEAROFF_WINDOW (1L << 0)
-void wsWindowDecoration(wsTWindow *win, long d)
+void wsWindowDecoration(wsTWindow *win, Bool decor)
{
wsMotifHints = XInternAtom(wsDisplay, "_MOTIF_WM_HINTS", 0);
@@ -178,7 +178,7 @@ void wsWindowDecoration(wsTWindow *win,
memset(&wsMotifWmHints, 0, sizeof(MotifWmHints));
wsMotifWmHints.flags = MWM_HINTS_FUNCTIONS | MWM_HINTS_DECORATIONS;
- if (d) {
+ if (decor) {
wsMotifWmHints.functions = MWM_FUNC_MOVE | MWM_FUNC_CLOSE | MWM_FUNC_MINIMIZE | MWM_FUNC_MAXIMIZE | MWM_FUNC_RESIZE;
wsMotifWmHints.decorations = MWM_DECOR_ALL;
}
Modified: trunk/gui/wm/ws.h
==============================================================================
--- trunk/gui/wm/ws.h Tue Dec 4 19:44:54 2012 (r35590)
+++ trunk/gui/wm/ws.h Tue Dec 4 19:55:24 2012 (r35591)
@@ -243,7 +243,7 @@ void wsSetBackgroundRGB(wsTWindow *win,
#define wsClearWindow(win) XClearWindow(wsDisplay, (win)->WindowID)
void wsSetTitle(wsTWindow *win, char *name);
void wsVisibleWindow(wsTWindow *win, int show);
-void wsWindowDecoration(wsTWindow *win, long d);
+void wsWindowDecoration(wsTWindow *win, Bool decor);
void wsSetLayer(Display *wsDisplay, Window win, int layer);
void wsFullScreen(wsTWindow *win);
void wsPostRedisplay(wsTWindow *win);
More information about the MPlayer-cvslog
mailing list