diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-02 19:59:02 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:20 +0200 |
commit | 61ed4c2945866ffc603fc085e1292346868cd66d (patch) | |
tree | 1fdb75ab639641eb0ed12e7e629cc1badf5ced42 /libvo | |
parent | efdce758ce171ef133fb8a8748866dced120e742 (diff) | |
download | mpv-61ed4c2945866ffc603fc085e1292346868cd66d.tar.bz2 mpv-61ed4c2945866ffc603fc085e1292346868cd66d.tar.xz |
x11_common: Get window dimensions also for -wid 0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31623 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/x11_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |