Mercurial > mplayer.hg
changeset 35651:ebaac70ff6dc
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.
author | ib |
---|---|
date | Tue, 15 Jan 2013 09:41:34 +0000 |
parents | 75c26c61fd3c |
children | f6c00eacd816 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Tue Jan 15 09:31:18 2013 +0000 +++ b/gui/wm/ws.c Tue Jan 15 09:41:34 2013 +0000 @@ -1181,12 +1181,7 @@ } 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)