changeset 31557:84f43ca3fad1

Get window dimensions also for -wid 0.
author reimar
date Fri, 02 Jul 2010 19:59:02 +0000
parents f570e2ab2f1a
children a3a50df246f8
files libvo/x11_common.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {