diff options
author | wm4 <wm4@nowhere> | 2014-05-17 00:52:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-17 00:53:54 +0200 |
commit | 444e583b6d50a92367d3645ef6f391f218701b07 (patch) | |
tree | 392b5ad59365c3be1b0f4853b595a4044282e3c8 /video | |
parent | c14721c8b930481cbfcfbb8cbbfdf32c68a170fc (diff) | |
download | mpv-444e583b6d50a92367d3645ef6f391f218701b07.tar.bz2 mpv-444e583b6d50a92367d3645ef6f391f218701b07.tar.xz |
x11: use CenterGravity by default
Keeps the window centered on resize. Seems nicer. (Although it's worse
if 1. the default placement of the WM puts it into a monitor corner,
and 2. you switch to a larger video.)
Diffstat (limited to 'video')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 713b5071df..2bd385f641 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -914,7 +914,7 @@ static void vo_x11_sizehint(struct vo *vo, int x, int y, int width, int height, x11->vo_hint.base_height = 0 /*height*/; x11->vo_hint.flags |= PWinGravity; - x11->vo_hint.win_gravity = StaticGravity; + x11->vo_hint.win_gravity = CenterGravity; XSetWMNormalHints(x11->display, x11->window, &x11->vo_hint); } |