# HG changeset patch # User reimar # Date 1228503709 0 # Node ID a318969a4f45cbe83d2a9964b99720698f38201f # Parent 18b00c8d2c9fe01718d2b09a9f9e94af31250fd7 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]. diff -r 18b00c8d2c9f -r a318969a4f45 libvo/x11_common.c --- a/libvo/x11_common.c Fri Dec 05 15:55:25 2008 +0000 +++ b/libvo/x11_common.c Fri Dec 05 19:01:49 2008 +0000 @@ -1191,6 +1191,13 @@ 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);