Merge pull request #1078 from LoipesMas/fix_float_outside

Fix floating windows showing outside of neovide window
macos-click-through
LoipesMas 3 years ago committed by GitHub
commit fe4ac0162e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -291,6 +291,8 @@ impl RenderedWindow {
grid_size, grid_size,
floating_order, 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_destination: Point = (grid_left as f32, grid_top as f32).into();
let new_grid_size: Dimensions = grid_size.into(); let new_grid_size: Dimensions = grid_size.into();

Loading…
Cancel
Save