[MPlayer-cvslog] r28097 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Fri Dec 5 20:01:50 CET 2008


Author: reimar
Date: Fri Dec  5 20:01:49 2008
New Revision: 28097

Log:
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].


Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	(original)
+++ trunk/libvo/x11_common.c	Fri Dec  5 20:01:49 2008
@@ -1191,6 +1191,13 @@ void vo_x11_sizehint(int x, int y, int w
     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);



More information about the MPlayer-cvslog mailing list