From 097445bc2008a93e9189fbb2b95dcf66ddcdaa84 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 8 Feb 2020 09:23:34 +0300 Subject: [PATCH] shell.xdg: fix two copy-paste errors --- src/wayland/shell/xdg/xdg_handlers.rs | 2 +- src/wayland/shell/xdg/zxdgv6_handlers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 => {