Commit bcb762e2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

xdg-shell: tell the WM of the desired window size

parent 15b4e1b7
......@@ -185,6 +185,14 @@ static int Control(vout_window_t *wnd, int cmd, va_list ap)
unsigned width = va_arg(ap, unsigned);
unsigned height = va_arg(ap, unsigned);
#ifdef XDG_SHELL
/* The minimum size must be smaller or equal to the maximum size
* at _all_ times. This gets a bit cumbersome. */
xdg_toplevel_set_min_size(sys->toplevel, 0, 0);
xdg_toplevel_set_max_size(sys->toplevel, width, height);
xdg_toplevel_set_min_size(sys->toplevel, width, height);
#endif
vlc_mutex_lock(&sys->lock);
sys->set.width = width;
sys->set.height = height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment