Mercurial > mplayer.hg
changeset 34001:00c09bdc2d5a
Place XWithdrawWindow() before window decor changes in wsFullScreen().
This is like in vo_x11_fullscreen() and is said to avoid an additional
window refresh.
Additionally, add a comment.
author | ib |
---|---|
date | Fri, 09 Sep 2011 13:46:11 +0000 |
parents | 3ab636a679b1 |
children | 1b9b9a987ec9 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Sep 09 13:34:55 2011 +0000 +++ b/gui/wm/ws.c Fri Sep 09 13:46:11 2011 +0000 @@ -963,6 +963,11 @@ #endif } + /* unknown window manager and obsolete option -fsmode used */ + if (vo_wm_type == 0 && !(vo_fsmode & 16)) { + XWithdrawWindow(wsDisplay, win->WindowID, wsScreen); + } + if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs vo_x11_decoration(wsDisplay, win->WindowID, win->Decorations && !win->isFullScreen); vo_x11_sizehint(win->X, win->Y, win->Width, win->Height, 0); @@ -974,10 +979,6 @@ XMoveResizeWindow(wsDisplay, win->WindowID, win->X, win->Y, win->Width, win->Height); } - if (vo_wm_type == 0 && !(vo_fsmode & 16)) { - XWithdrawWindow(wsDisplay, win->WindowID, wsScreen); - } - wsRaiseWindowTop(wsDisplay, win->WindowID); XFlush(wsDisplay); }