diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-12-06 02:16:51 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2008-12-06 02:16:51 +0200 |
commit | cb3dc68691f4d01426c7abdd9e7bc16f8d461a9f (patch) | |
tree | 66106f966a36721c37c1e22221e85110cbefa255 /libvo/x11_common.c | |
parent | 8c144171bb80dd3d1f7161b97675e78cad00bc65 (diff) | |
parent | c6ef66231818b90c75f84b9407730647c93f040c (diff) | |
download | mpv-cb3dc68691f4d01426c7abdd9e7bc16f8d461a9f.tar.bz2 mpv-cb3dc68691f4d01426c7abdd9e7bc16f8d461a9f.tar.xz |
Merge svn changes up to r28103
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 25bed4389a..2dc594419a 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1165,6 +1165,13 @@ void vo_x11_sizehint(struct vo *vo, int x, int y, int width, int height, int max x11->vo_hint.flags |= PMinSize; x11->vo_hint.min_width = x11->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. + x11->vo_hint.flags |= PBaseSize; + x11->vo_hint.base_width = 0 /*width*/; + x11->vo_hint.base_height = 0 /*height*/; + x11->vo_hint.flags |= PWinGravity; x11->vo_hint.win_gravity = StaticGravity; XSetWMNormalHints(x11->display, x11->window, &x11->vo_hint); |