shell.xdg: fix two copy-paste errors

This commit is contained in:
Ivan Molodetskikh 2020-02-08 09:23:34 +03:00
parent adbab32bd8
commit 097445bc20
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
2 changed files with 2 additions and 2 deletions

View File

@ -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 => {

View File

@ -491,7 +491,7 @@ where
}
zxdg_toplevel_v6::Request::SetMinSize { width, height } => {
with_surface_toplevel_data::<R, _>(&toplevel, |toplevel_data| {
toplevel_data.max_size = (width, height);
toplevel_data.min_size = (width, height);
});
}
zxdg_toplevel_v6::Request::SetMaximized => {