From 36102bfa1eead3fb24fe1090b901db6cf66112e1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 31 Oct 2019 16:42:19 +0100 Subject: [PATCH] comp: make Wayland window unresizable This prevents the compositor from issuing resize requests. We ignore those anyway. --- src/xrt/compositor/main/comp_window_wayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xrt/compositor/main/comp_window_wayland.c b/src/xrt/compositor/main/comp_window_wayland.c index 538ca36c0..6469e894c 100644 --- a/src/xrt/compositor/main/comp_window_wayland.c +++ b/src/xrt/compositor/main/comp_window_wayland.c @@ -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; }