summaryrefslogtreecommitdiffstats
path: root/libvo/vo_dxr2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_dxr2.c')
-rw-r--r--libvo/vo_dxr2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_dxr2.c b/libvo/vo_dxr2.c
index d1afe2a0b2..4d3a84af66 100644
--- a/libvo/vo_dxr2.c
+++ b/libvo/vo_dxr2.c
@@ -854,6 +854,8 @@ static uint32_t config(uint32_t s_width, uint32_t s_height, uint32_t width, uint
break;
}
+ if (vo_ontop) vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
+
// start playing
if(ioctl(dxr2_fd, DXR2_IOC_PLAY, NULL) == 0) {
playing = 1;
@@ -1065,6 +1067,9 @@ static uint32_t control(uint32_t request, void *data, ...)
flush_dxr2();
ioctl(dxr2_fd, DXR2_IOC_PLAY, NULL);
return VO_TRUE;
+ case VOCTRL_ONTOP:
+ vo_x11_ontop();
+ return VO_TRUE;
case VOCTRL_FULLSCREEN:
if(!use_ol)
return VO_NOTIMPL;