comp: make Wayland window unresizable

This prevents the compositor from issuing resize requests. We ignore
those anyway.
This commit is contained in:
Simon Ser 2019-10-31 16:42:19 +01:00
parent 746cccca36
commit 36102bfa1e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -210,6 +210,9 @@ comp_window_wayland_init_swapchain(struct comp_window *w,
&w->swapchain, width, height, w->c->settings.color_format,
w->c->settings.color_space, w->c->settings.present_mode);
xdg_toplevel_set_min_size(w_wayland->xdg_toplevel, width, height);
xdg_toplevel_set_max_size(w_wayland->xdg_toplevel, width, height);
return true;
}