diff libvo/vo_gl2.c @ 16239:87da68468e6d

Get events from -wid window.
author reimar
date Tue, 16 Aug 2005 23:24:52 +0000
parents f18e92e72216
children 273d33249c25
line wrap: on
line diff
--- a/libvo/vo_gl2.c	Tue Aug 16 19:09:43 2005 +0000
+++ b/libvo/vo_gl2.c	Tue Aug 16 23:24:52 2005 +0000
@@ -622,6 +622,9 @@
 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) {
   if (WinID >= 0) {
     vo_window = WinID ? (Window)WinID : mRootWin;
+    vo_x11_selectinput_witherr(mDisplay, vo_window,
+             StructureNotifyMask | KeyPressMask | PointerMotionMask |
+             ButtonPressMask | ButtonReleaseMask | ExposureMask);
     return 0;
   }
   if ( vo_window == None )