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

ib subversion at mplayerhq.hu
Tue Jan 15 10:41:34 CET 2013


Author: ib
Date: Tue Jan 15 10:41:34 2013
New Revision: 35745

Log:
Use wsSizeHint() in wsMoveWindow().

Although not all hints need to be set, it's better to use the function
that already handles XSetWMNormalHints() for all windows.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Tue Jan 15 10:31:18 2013	(r35744)
+++ trunk/gui/wm/ws.c	Tue Jan 15 10:41:34 2013	(r35745)
@@ -1181,12 +1181,7 @@ void wsMoveWindow(wsTWindow *win, Bool a
     } else
         wsWindowPosition(win, x, y, win->Width, win->Height);
 
-    win->SizeHint.flags       = PPosition | PWinGravity;
-    win->SizeHint.x           = win->X;
-    win->SizeHint.y           = win->Y;
-    win->SizeHint.win_gravity = StaticGravity;
-    XSetWMNormalHints(wsDisplay, win->WindowID, &win->SizeHint);
-
+    wsSizeHint(win);
     XMoveWindow(wsDisplay, win->WindowID, win->X, win->Y);
 
     if (win->ReSize)


More information about the MPlayer-cvslog mailing list