From 124bf32a863409495f6dd43f8746486a609a1535 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Fri, 8 Oct 2021 15:47:10 -0700 Subject: [PATCH] fix floating window selection issue --- src/window/window_wrapper/mouse_manager.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/window/window_wrapper/mouse_manager.rs b/src/window/window_wrapper/mouse_manager.rs index 9113736..29e1d31 100644 --- a/src/window/window_wrapper/mouse_manager.rs +++ b/src/window/window_wrapper/mouse_manager.rs @@ -219,7 +219,12 @@ impl MouseManager { .ok(); } - self.dragging = Some(button_text); + + if down { + self.dragging = Some(button_text); + } else { + self.dragging = None; + } if self.dragging.is_none() { self.has_moved = false;