mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 03:02:53 +00:00
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:
parent
c14721c8b9
commit
444e583b6d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user