# HG changeset patch # User ib # Date 1315575971 0 # Node ID 00c09bdc2d5a8d879cc09cef90bed959e38f3707 # Parent 3ab636a679b1d2a4113140c450a694e0af97e59c 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. diff -r 3ab636a679b1 -r 00c09bdc2d5a gui/wm/ws.c --- 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); }