From eebf1c63393bb5a2b70a85199d845b39d4a46dfb Mon Sep 17 00:00:00 2001 From: bolphen <[email protected]> Date: Wed, 8 Apr 2026 21:19:02 +0000 Subject: [PATCH] native/linux_wayland: Respect window_resizable --- src/native/linux_wayland.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/native/linux_wayland.rs b/src/native/linux_wayland.rs index 94a2fe40..94d51939 100644 --- a/src/native/linux_wayland.rs +++ b/src/native/linux_wayland.rs @@ -1195,6 +1195,21 @@ where wm_class.as_ptr() ); + if !conf.window_resizable { + for set_size in [ + extensions::xdg_shell::xdg_toplevel::set_max_size, + extensions::xdg_shell::xdg_toplevel::set_min_size, + ] { + wl_request!( + display.client, + display.xdg_toplevel, + set_size, + conf.window_width, + conf.window_height + ); + } + } + if conf.fullscreen { display.set_fullscreen(true); }