changeset 31535:749835ce19dc

Do not try to grab input from -wid windows, it will most likely break their input processing. If someone needs the previous behaviour, an option could be added (and also used in the w32_common.c code).
author reimar
date Thu, 01 Jul 2010 19:48:00 +0000
parents a12dc8956533
children 96d04730232f
files libvo/x11_common.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Thu Jul 01 19:43:38 2010 +0000
+++ b/libvo/x11_common.c	Thu Jul 01 19:48:00 2010 +0000
@@ -1083,6 +1083,10 @@
       XInstallColormap(mDisplay, col_map);
     }
     if (WinID) vo_x11_update_geometry();
+    else
+        // Do not capture events since it might break the parent application
+        // if it relies on events being forwarded to the parent of WinID.
+        // It also is consistent with the w32_common.c code.
     vo_x11_selectinput_witherr(mDisplay, vo_window,
           StructureNotifyMask | KeyPressMask | PointerMotionMask |
           ButtonPressMask | ButtonReleaseMask | ExposureMask);