# HG changeset patch # User reimar # Date 1278100742 0 # Node ID 84f43ca3fad11ebbd7eadf98af030f9e0ff555f0 # Parent f570e2ab2f1a4d0541542f13d314907eea7f9176 Get window dimensions also for -wid 0. diff -r f570e2ab2f1a -r 84f43ca3fad1 libvo/x11_common.c --- a/libvo/x11_common.c Fri Jul 02 19:50:23 2010 +0000 +++ b/libvo/x11_common.c Fri Jul 02 19:59:02 2010 +0000 @@ -1091,8 +1091,6 @@ XGetWindowAttributes(mDisplay, vo_window, &attribs); vo_x11_selectinput_witherr(mDisplay, vo_window, attribs.your_event_mask | ExposureMask); - - 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. @@ -1100,6 +1098,8 @@ vo_x11_selectinput_witherr(mDisplay, vo_window, StructureNotifyMask | KeyPressMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask); + + vo_x11_update_geometry(); goto final; } if (vo_window == None) {