diff libvo/vo_x11.c @ 27885:9829cfa41d6d

Replace some of the different inconsistent XGetGeometry uses by a vo_x11_update_geometry function.
author reimar
date Sat, 15 Nov 2008 17:45:55 +0000
parents 96831cf06109
children 08a5ccceb21a
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sat Nov 15 17:41:30 2008 +0000
+++ b/libvo/vo_x11.c	Sat Nov 15 17:45:55 2008 +0000
@@ -430,9 +430,7 @@
                                            ButtonReleaseMask |
                                            ExposureMask);
                 XMapWindow(mDisplay, vo_window);
-                XGetGeometry(mDisplay, vo_window, &mRootWin,
-                             &vo_dx, &vo_dy, &vo_dwidth, &vo_dheight,
-                             &border, &depth);
+                depth = vo_x11_update_geometry();
             } else
                 XSelectInput(mDisplay, vo_window, ExposureMask);
         } else