diff options
author | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-21 17:31:44 +0000 |
---|---|---|
committer | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-21 17:31:44 +0000 |
commit | 362be18be60318f8ee5ee28a09e5aa04d7419106 (patch) | |
tree | 1a15e0426458abda20485466aebca52adf17b17e /libvo/vo_x11.c | |
parent | 140b59994a97cd828f22f3f58967cc3a4b1e0707 (diff) | |
download | mpv-362be18be60318f8ee5ee28a09e5aa04d7419106.tar.bz2 mpv-362be18be60318f8ee5ee28a09e5aa04d7419106.tar.xz |
Make -wid behave more consistent.
Original patch by kiriuja |mplayer-patches >ta< en-directo >tod< net|
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15541 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 14c04cff49..8262d57558 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -377,6 +377,8 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, vo_window = WinID ? ((Window) WinID) : mRootWin; if (WinID) { + int border; + Window win; XUnmapWindow(mDisplay, vo_window); XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); @@ -389,6 +391,9 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, ButtonReleaseMask | ExposureMask); XMapWindow(mDisplay, vo_window); + XGetGeometry(mDisplay, vo_window, &mRootWin, + &vo_dx, &vo_dy, &vo_dwidth, &vo_dheight, + &border, &depth); } else XSelectInput(mDisplay, vo_window, ExposureMask); } else |