changeset 35497:ff7cf8f1bd19

Change parameter of wsWindowDecoration(). It's boolean, so don't use long. Additionally, choose better name.
author ib
date Tue, 04 Dec 2012 18:55:24 +0000
parents a25b8f9d44e0
children c505a4aa9582
files gui/interface.c gui/ui/actions.c gui/wm/ws.c gui/wm/ws.h
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Tue Dec 04 18:44:54 2012 +0000
+++ b/gui/interface.c	Tue Dec 04 18:55:24 2012 +0000
@@ -207,7 +207,7 @@
     wsSetIcon(wsDisplay, guiApp.videoWindow.WindowID, &guiIcon);
 
     if (!guiApp.mainDecoration)
-        wsWindowDecoration(&guiApp.mainWindow, 0);
+        wsWindowDecoration(&guiApp.mainWindow, False);
 
     wsVisibleWindow(&guiApp.mainWindow, wsShowWindow);
 
--- a/gui/ui/actions.c	Tue Dec 04 18:44:54 2012 +0000
+++ b/gui/ui/actions.c	Tue Dec 04 18:55:24 2012 +0000
@@ -245,7 +245,7 @@
     wsXDNDMakeAwareness(&guiApp.mainWindow);
 
     if (!guiApp.mainDecoration)
-        wsWindowDecoration(&guiApp.mainWindow, 0);
+        wsWindowDecoration(&guiApp.mainWindow, False);
 
     wsVisibleWindow(&guiApp.mainWindow, wsShowWindow);
     mainVisible = True;
--- a/gui/wm/ws.c	Tue Dec 04 18:44:54 2012 +0000
+++ b/gui/wm/ws.c	Tue Dec 04 18:55:24 2012 +0000
@@ -168,7 +168,7 @@
 
 #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 @@
     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;
     }
--- a/gui/wm/ws.h	Tue Dec 04 18:44:54 2012 +0000
+++ b/gui/wm/ws.h	Tue Dec 04 18:55:24 2012 +0000
@@ -243,7 +243,7 @@
 #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);