summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-01 20:24:37 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-01 20:24:37 +0000
commit1a7a3f8b389b4febd41dd2d3f7c16fb033d98fe7 (patch)
tree0619ef71f423acd2f182db83235c2e29dcee1bae /libvo/x11_common.c
parent0e49449d13c63f3673e6cc5021459bcf30ebe285 (diff)
downloadmpv-1a7a3f8b389b4febd41dd2d3f7c16fb033d98fe7.tar.bz2
mpv-1a7a3f8b389b4febd41dd2d3f7c16fb033d98fe7.tar.xz
fullscreen fixes and GUI support for vo_gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13844 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index df51192b8c..fd97843f39 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1133,6 +1133,21 @@ int vo_x11_check_events(Display * mydisplay)
return ret;
}
+/**
+ * \brief sets the size and position of the non-fullscreen window.
+ */
+void vo_x11_nofs_sizepos(int x, int y, int width, int height)
+{
+ if (vo_fs) {
+ vo_old_x = x;
+ vo_old_y = y;
+ vo_old_width = width;
+ vo_old_height = height;
+ }
+ else
+ XMoveResizeWindow(mDisplay, vo_window, x, y, width, height);
+}
+
void vo_x11_sizehint(int x, int y, int width, int height, int max)
{
vo_hint.flags = PPosition | PSize | PWinGravity;