diff --git a/src/wayland/shell/xdg/xdg_handlers.rs b/src/wayland/shell/xdg/xdg_handlers.rs index 2b92d84..ea36f6e 100644 --- a/src/wayland/shell/xdg/xdg_handlers.rs +++ b/src/wayland/shell/xdg/xdg_handlers.rs @@ -473,7 +473,7 @@ where } xdg_toplevel::Request::SetMinSize { width, height } => { with_surface_toplevel_data(&data.shell_data, &toplevel, |toplevel_data| { - toplevel_data.max_size = (width, height); + toplevel_data.min_size = (width, height); }); } xdg_toplevel::Request::SetMaximized => { diff --git a/src/wayland/shell/xdg/zxdgv6_handlers.rs b/src/wayland/shell/xdg/zxdgv6_handlers.rs index 35e77f7..84499d4 100644 --- a/src/wayland/shell/xdg/zxdgv6_handlers.rs +++ b/src/wayland/shell/xdg/zxdgv6_handlers.rs @@ -491,7 +491,7 @@ where } zxdg_toplevel_v6::Request::SetMinSize { width, height } => { with_surface_toplevel_data::(&toplevel, |toplevel_data| { - toplevel_data.max_size = (width, height); + toplevel_data.min_size = (width, height); }); } zxdg_toplevel_v6::Request::SetMaximized => {