mirror of https://github.com/mpv-player/mpv
x11: don't set PBaseSize
There's apparently no reason why we should set a bogus size.
This commit is contained in:
parent
3afff3fe9b
commit
625ad57add
|
@ -932,13 +932,6 @@ static void vo_x11_sizehint(struct vo *vo, int x, int y, int width, int height,
|
||||||
hint->flags |= PMinSize;
|
hint->flags |= PMinSize;
|
||||||
hint->min_width = hint->min_height = 4;
|
hint->min_width = 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.
|
|
||||||
hint->flags |= PBaseSize;
|
|
||||||
hint->base_width = 0 /*width*/;
|
|
||||||
hint->base_height = 0 /*height*/;
|
|
||||||
|
|
||||||
hint->flags |= PWinGravity;
|
hint->flags |= PWinGravity;
|
||||||
hint->win_gravity = CenterGravity;
|
hint->win_gravity = CenterGravity;
|
||||||
XSetWMNormalHints(x11->display, x11->window, hint);
|
XSetWMNormalHints(x11->display, x11->window, hint);
|
||||||
|
|
Loading…
Reference in New Issue