From 90a03f23d3a5d9dcd660d74cca9745ce2093fe01 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Wed, 5 Jan 2022 23:24:30 -0800 Subject: [PATCH] fix 0.6 mouse issues --- src/window/mouse_manager.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/window/mouse_manager.rs b/src/window/mouse_manager.rs index 5da70eb..e21fc46 100644 --- a/src/window/mouse_manager.rs +++ b/src/window/mouse_manager.rs @@ -150,16 +150,7 @@ impl MouseManager { ); let previous_position = self.drag_position; - // Until https://github.com/neovim/neovim/pull/12667 is merged, we have to special - // case non floating windows. Floating windows correctly transform mouse positions - // into grid coordinates, but non floating windows do not. - self.drag_position = if relevant_window_details.floating_order.is_some() { - // Floating windows handle relative grid coordinates just fine - self.relative_position - } else { - // Non floating windows need global coordinates - self.position - }; + self.drag_position = self.relative_position; let has_moved = self.drag_position != previous_position;