From 61ed4c2945866ffc603fc085e1292346868cd66d Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 2 Jul 2010 19:59:02 +0000 Subject: x11_common: Get window dimensions also for -wid 0 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31623 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 068561c20a..f2976f0a80 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1049,7 +1049,6 @@ void vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis, int x, int y, XInstallColormap(mDisplay, col_map); } if (WinID) { - vo_x11_update_geometry(vo); // Expose events can only really be handled by us, so request them. vo_x11_selectinput_witherr(mDisplay, x11->window, ExposureMask); } else @@ -1059,6 +1058,8 @@ void vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis, int x, int y, vo_x11_selectinput_witherr(mDisplay, x11->window, StructureNotifyMask | KeyPressMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask); + + vo_x11_update_geometry(vo); goto final; } if (x11->window == None) { -- cgit v1.2.3