Mercurial > mplayer.hg
changeset 31539:b07ed23358af
Always request expose events, we have to handle them, the application
that created the -wid window can't.
author | reimar |
---|---|
date | Thu, 01 Jul 2010 20:04:38 +0000 |
parents | 09e7a988ab93 |
children | 7f1c8212e3cf |
files | libvo/x11_common.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.