From 640f93d0183419c1d7894fa09ef7cafac416ab9f Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Nov 2003 16:36:10 +0000 Subject: runtime 'stay-on-top' functionality git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11543 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xvidix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libvo/vo_xvidix.c') diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index c064cc7c44..8d22c75106 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -368,6 +368,8 @@ else panscan_calc(); + if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop); + saver_off(mDisplay); /* turning off screen saver */ return(0); @@ -466,6 +468,9 @@ static uint32_t control(uint32_t request, void *data, ...) 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: -- cgit v1.2.3