mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
dca49663cd
commit
087dbfe99f
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue