changeset 25485:765211fd3efb

Set vo_mouse_autohide in gl and gl2 vos, so the mouse hiding behaviour becomes the same as for the other vos using X11.
author reimar
date Sat, 22 Dec 2007 20:17:57 +0000
parents 943f37a4323d
children 853622d14aa4
files libvo/vo_gl.c libvo/vo_gl2.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sat Dec 22 19:16:01 2007 +0000
+++ b/libvo/vo_gl.c	Sat Dec 22 20:17:57 2007 +0000
@@ -465,6 +465,7 @@
   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,
--- a/libvo/vo_gl2.c	Sat Dec 22 19:16:01 2007 +0000
+++ b/libvo/vo_gl2.c	Sat Dec 22 20:17:57 2007 +0000
@@ -521,6 +521,7 @@
 
 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,