From 444e583b6d50a92367d3645ef6f391f218701b07 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 17 May 2014 00:52:59 +0200 Subject: 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.) --- video/out/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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); } -- cgit v1.2.3