summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 20:17:57 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 20:17:57 +0000
commit087dbfe99f686356f2b56eb3d861bdfd4c2c59ee (patch)
tree1090b4f6ae0e76c6bb5803395ece52158820cd08 /libvo
parentdca49663cd17b18c466af1c2a00cf7536edaaf1c (diff)
downloadmpv-087dbfe99f686356f2b56eb3d861bdfd4c2c59ee.tar.bz2
mpv-087dbfe99f686356f2b56eb3d861bdfd4c2c59ee.tar.xz
Set vo_mouse_autohide in gl and gl2 vos, so the mouse hiding behaviour
becomes the same as for the other vos using X11. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25513 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c1
-rw-r--r--libvo/vo_gl2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index a548439395..0824e25bd1 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -465,6 +465,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
if (!vo_w32_config(d_width, d_height, flags))
return -1;
#else
+ vo_mouse_autohide = 1;
if (WinID >= 0) {
vo_window = WinID ? (Window)WinID : mRootWin;
vo_x11_selectinput_witherr(mDisplay, vo_window,
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 092e7660af..aa198cd102 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -521,6 +521,7 @@ static int choose_glx_visual(Display *dpy, int scr, XVisualInfo *res_vi)
static int config_glx(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) {
XVisualInfo *vinfo, vinfo_buf;
+ vo_mouse_autohide = 1;
if (WinID >= 0) {
vo_window = WinID ? (Window)WinID : mRootWin;
vo_x11_selectinput_witherr(mDisplay, vo_window,