floating: Fix broken size check

This commit is contained in:
Victoria Brekenfeld 2024-01-08 21:43:46 +00:00 committed by Victoria Brekenfeld
parent 9ca5edc836
commit 234a3c6bf9

View file

@ -333,7 +333,7 @@ impl FloatingLayout {
geometry.loc.x = offset;
// do we need to resize?
if geometry.loc.y as i32 + win_geo.size.h
<= output_geometry.loc.y + output_geometry.size.h - 16
> output_geometry.loc.y + output_geometry.size.h - 16
{
win_geo.size.h =
(output_geometry.loc.y + output_geometry.size.h - 16)