[MPlayer-cvslog] r31623 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Fri Jul 2 21:59:02 CEST 2010


Author: reimar
Date: Fri Jul  2 21:59:02 2010
New Revision: 31623

Log:
Get window dimensions also for -wid 0.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Fri Jul  2 21:50:23 2010	(r31622)
+++ trunk/libvo/x11_common.c	Fri Jul  2 21:59:02 2010	(r31623)
@@ -1091,8 +1091,6 @@ void vo_x11_create_vo_window(XVisualInfo
       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 @@ void vo_x11_create_vo_window(XVisualInfo
       vo_x11_selectinput_witherr(mDisplay, vo_window,
           StructureNotifyMask | KeyPressMask | PointerMotionMask |
           ButtonPressMask | ButtonReleaseMask | ExposureMask);
+
+    vo_x11_update_geometry();
     goto final;
   }
   if (vo_window == None) {


More information about the MPlayer-cvslog mailing list