diff options
author | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-30 16:36:10 +0000 |
---|---|---|
committer | joey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-30 16:36:10 +0000 |
commit | 640f93d0183419c1d7894fa09ef7cafac416ab9f (patch) | |
tree | 02aebf4bf1fb37c053faaf4a95d41e15cf51c88d /libvo/vo_xover.c | |
parent | 4daef48770c3d434aa87d4449e864ad733cb194a (diff) | |
download | mpv-640f93d0183419c1d7894fa09ef7cafac416ab9f.tar.bz2 mpv-640f93d0183419c1d7894fa09ef7cafac416ab9f.tar.xz |
runtime 'stay-on-top' functionality
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11543 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xover.c')
-rw-r--r-- | libvo/vo_xover.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/vo_xover.c b/libvo/vo_xover.c index 7c89733e4d..256a22ec56 100644 --- a/libvo/vo_xover.c +++ b/libvo/vo_xover.c @@ -192,6 +192,9 @@ static void set_window(int force_update) 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 @@ 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: |