# HG changeset patch # User ib # Date 1315489373 0 # Node ID acf8545dc4b5dfe1f097f64a772585f0fec98c17 # Parent 9c2779f2407780b8820978861d6e12adbdf87857 Remove variable decoration in wsFullScreen(). It is needless, use win->Decorations together with win->isFullScreen instead. diff -r 9c2779f24077 -r acf8545dc4b5 gui/wm/ws.c --- a/gui/wm/ws.c Thu Sep 08 13:30:50 2011 +0000 +++ b/gui/wm/ws.c Thu Sep 08 13:42:53 2011 +0000 @@ -929,8 +929,6 @@ // ---------------------------------------------------------------------------------------------- void wsFullScreen(wsTWindow *win) { - int decoration = 0; - if (win->isFullScreen) { vo_x11_ewmh_fullscreen(win->WindowID, _NET_WM_STATE_REMOVE); // removes fullscreen state if wm supports EWMH @@ -939,7 +937,6 @@ win->Y = win->OldY; win->Width = win->OldWidth; win->Height = win->OldHeight; - decoration = win->Decorations; } win->isFullScreen = False; @@ -967,7 +964,7 @@ } if (!(vo_fs_type & vo_wm_FULLSCREEN)) { // shouldn't be needed with EWMH fs - vo_x11_decoration(wsDisplay, win->WindowID, decoration); + vo_x11_decoration(wsDisplay, win->WindowID, win->Decorations && !win->isFullScreen); vo_x11_sizehint(win->X, win->Y, win->Width, win->Height, 0); vo_x11_setlayer(wsDisplay, win->WindowID, win->isFullScreen);