summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-05 19:01:49 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-05 19:01:49 +0000
commit476c9bfd95314fa05076cc6bfcda29ef334c5804 (patch)
treea0e5c28602d62ad3f8bcfbf843192f457982f552 /libvo
parentd8185b1040341c423504b22328aecfd2bc44fc5c (diff)
downloadmpv-476c9bfd95314fa05076cc6bfcda29ef334c5804.tar.bz2
mpv-476c9bfd95314fa05076cc6bfcda29ef334c5804.tar.xz
Set the base size window manager hint, otherwise some subtract the minimum
size of 4x4 from the numbers displayed to the user which might be confusing. Based on patch by Bert Wesarg [bert wesarg googlemail com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28097 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 883ada7715..dcbac97bbc 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1191,6 +1191,13 @@ void vo_x11_sizehint(int x, int y, int width, int height, int max)
vo_hint.flags |= PMinSize;
vo_hint.min_width = vo_hint.min_height = 4;
+ // Set the base size. A window manager might display the window
+ // size to the user relative to this.
+ // Setting these to width/height might be nice, but e.g. fluxbox can't handle it.
+ vo_hint.flags |= PBaseSize;
+ vo_hint.base_width = 0 /*width*/;
+ vo_hint.base_height = 0 /*height*/;
+
vo_hint.flags |= PWinGravity;
vo_hint.win_gravity = StaticGravity;
XSetWMNormalHints(mDisplay, vo_window, &vo_hint);