Mercurial > mplayer.hg
changeset 34004:7070033cf360
Cosmetic changes at ontop code in wsFullScreen().
Add comment, remove needless parentheses and replace
constant 1 by variable vo_ontop.
author | ib |
---|---|
date | Fri, 09 Sep 2011 14:07:14 +0000 |
parents | a62eb0fc6562 |
children | f98595b413e2 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Fri Sep 09 13:57:19 2011 +0000 +++ b/gui/wm/ws.c Fri Sep 09 14:07:14 2011 +0000 @@ -976,8 +976,9 @@ XMoveResizeWindow(wsDisplay, win->WindowID, win->X, win->Y, win->Width, win->Height); } - if ((!(win->isFullScreen)) & vo_ontop) - vo_x11_setlayer(wsDisplay, win->WindowID, 1); + /* some window managers lose ontop after fullscreen */ + if (!win->isFullScreen & vo_ontop) + vo_x11_setlayer(wsDisplay, win->WindowID, vo_ontop); wsRaiseWindowTop(wsDisplay, win->WindowID); XFlush(wsDisplay);