Mercurial > mplayer.hg
comparison libvo/vo_gl2.c @ 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 | 084619331d92 |
children | 46f0b4d34fa1 |
comparison
equal
deleted
inserted
replaced
25484:943f37a4323d | 25485:765211fd3efb |
---|---|
519 return (best_weight < 1000000) ? 0 : -1; | 519 return (best_weight < 1000000) ? 0 : -1; |
520 } | 520 } |
521 | 521 |
522 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) { | 522 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) { |
523 XVisualInfo *vinfo, vinfo_buf; | 523 XVisualInfo *vinfo, vinfo_buf; |
524 vo_mouse_autohide = 1; | |
524 if (WinID >= 0) { | 525 if (WinID >= 0) { |
525 vo_window = WinID ? (Window)WinID : mRootWin; | 526 vo_window = WinID ? (Window)WinID : mRootWin; |
526 vo_x11_selectinput_witherr(mDisplay, vo_window, | 527 vo_x11_selectinput_witherr(mDisplay, vo_window, |
527 StructureNotifyMask | KeyPressMask | PointerMotionMask | | 528 StructureNotifyMask | KeyPressMask | PointerMotionMask | |
528 ButtonPressMask | ButtonReleaseMask | ExposureMask); | 529 ButtonPressMask | ButtonReleaseMask | ExposureMask); |