[MPlayer-cvslog] r31605 - trunk/libvo/x11_common.c
reimar
subversion at mplayerhq.hu
Thu Jul 1 22:04:38 CEST 2010
Author: reimar
Date: Thu Jul 1 22:04:38 2010
New Revision: 31605
Log:
Always request expose events, we have to handle them, the application
that created the -wid window can't.
Modified:
trunk/libvo/x11_common.c
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c Thu Jul 1 22:00:19 2010 (r31604)
+++ trunk/libvo/x11_common.c Thu Jul 1 22:04:38 2010 (r31605)
@@ -1088,8 +1088,11 @@ void vo_x11_create_vo_window(XVisualInfo
XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa);
XInstallColormap(mDisplay, col_map);
}
- if (WinID) vo_x11_update_geometry();
- else
+ if (WinID) {
+ vo_x11_update_geometry();
+ // Expose events can only really be handled by us, so request them.
+ vo_x11_selectinput_witherr(mDisplay, vo_window, ExposureMask);
+ } 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.
More information about the MPlayer-cvslog
mailing list