Mercurial > mplayer.hg
diff libvo/vo_xover.c @ 11542:85e503ddf65f
runtime 'stay-on-top' functionality
author | joey |
---|---|
date | Sun, 30 Nov 2003 16:36:10 +0000 |
parents | c2bff70784d5 |
children | d4739143fe2e |
line wrap: on
line diff
--- a/libvo/vo_xover.c Sun Nov 30 14:45:42 2003 +0000 +++ b/libvo/vo_xover.c Sun Nov 30 16:36:10 2003 +0000 @@ -192,6 +192,9 @@ XSetForeground(mDisplay, vo_gc, colorkey); XFillRectangle(mDisplay, vo_window, vo_gc, drwX, drwY, drwWidth, (vo_fs ? drwHeight - 1 : drwHeight)); + + if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); + /* flush, update drawable */ XFlush(mDisplay); @@ -456,6 +459,9 @@ case VOCTRL_GET_PANSCAN: if ( !vo_config_count || !vo_fs ) return VO_FALSE; return VO_TRUE; + case VOCTRL_ONTOP: + vo_x11_ontop(); + return VO_TRUE; case VOCTRL_FULLSCREEN: vo_x11_fullscreen(); case VOCTRL_SET_PANSCAN: