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.)
This commit is contained in:
wm4 2014-05-17 00:52:59 +02:00
parent c14721c8b9
commit 444e583b6d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}