diff gui/wm/ws.c @ 33993:57d711d3dcca

Change parameter b of wsMoveWindow(). Make it Bool, rename it abs and reverse its meaning. The parameter now indicates whether x and y shall be handled as real, absolute position values or as possibly mock ones.
author ib
date Thu, 08 Sep 2011 11:11:02 +0000
parents 4dda3e85b298
children 8e5680eccf54
line wrap: on
line diff
--- a/gui/wm/ws.c	Thu Sep 08 10:43:11 2011 +0000
+++ b/gui/wm/ws.c	Thu Sep 08 11:11:02 2011 +0000
@@ -1042,9 +1042,12 @@
 // ----------------------------------------------------------------------------------------------
 //    Move window to x, y.
 // ----------------------------------------------------------------------------------------------
-void wsMoveWindow(wsTWindow *win, int b, int x, int y)
+void wsMoveWindow(wsTWindow *win, Bool abs, int x, int y)
 {
-    if (b) {
+    if (abs) {
+        win->X = x;
+        win->Y = y;
+    } else {
         switch (x) {
         case -1:
             win->X = (wsMaxX / 2) - (win->Width / 2) + wsOrgX;
@@ -1072,9 +1075,6 @@
             win->Y = y;
             break;
         }
-    } else {
-        win->X = x;
-        win->Y = y;
     }
 
     win->SizeHint.flags       = PPosition | PWinGravity;