From 93b5c49ff709200ac7268361f678a2a143fe504d Mon Sep 17 00:00:00 2001 From: LoipesMas <46327403+LoipesMas@users.noreply.github.com> Date: Wed, 8 Dec 2021 15:35:21 +0100 Subject: [PATCH] Fix floating windows showing outside of neovide window --- src/renderer/rendered_window.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/rendered_window.rs b/src/renderer/rendered_window.rs index b6a8c92..590fb7c 100644 --- a/src/renderer/rendered_window.rs +++ b/src/renderer/rendered_window.rs @@ -291,6 +291,8 @@ impl RenderedWindow { grid_size, floating_order, } => { + let grid_left = grid_left.max(0.0); + let grid_top = grid_top.max(0.0); let new_destination: Point = (grid_left as f32, grid_top as f32).into(); let new_grid_size: Dimensions = grid_size.into();