# HG changeset patch # User reimar # Date 1278100223 0 # Node ID f570e2ab2f1a4d0541542f13d314907eea7f9176 # Parent 1891f87cfdc56cf918ee23fbdb11febb47df4345 Re-enable keyboard input for GUI video window. diff -r 1891f87cfdc5 -r f570e2ab2f1a libvo/x11_common.c --- a/libvo/x11_common.c Fri Jul 02 19:19:21 2010 +0000 +++ b/libvo/x11_common.c Fri Jul 02 19:50:23 2010 +0000 @@ -1085,9 +1085,14 @@ XInstallColormap(mDisplay, col_map); } if (WinID) { + // Expose events can only really be handled by us, so request them. + // Do not remove existing masks so GUI keeps working. + XWindowAttributes attribs; + XGetWindowAttributes(mDisplay, vo_window, &attribs); + vo_x11_selectinput_witherr(mDisplay, vo_window, + attribs.your_event_mask | ExposureMask); + 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.