# HG changeset patch # User reimar # Date 1278014678 0 # Node ID b07ed23358afa3ea43d57295f6dca45d8dfb2706 # Parent 09e7a988ab93a73227e4f4e15808f34a15473967 Always request expose events, we have to handle them, the application that created the -wid window can't. diff -r 09e7a988ab93 -r b07ed23358af libvo/x11_common.c --- a/libvo/x11_common.c Thu Jul 01 20:00:19 2010 +0000 +++ b/libvo/x11_common.c Thu Jul 01 20:04:38 2010 +0000 @@ -1088,8 +1088,11 @@ 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.