From bac200885c400bbcd14bda386bd1c752da58ea2c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Jun 2021 13:01:54 +0200 Subject: [PATCH] LibGUI: Don't restart AbstractView drag on mousemove after escape key Previously, if a drag operation was aborted by pressing the escape key (handled by WindowServer), the drag would immediately restart if you moved the mouse cursor before releasing the mouse button. --- Userland/Libraries/LibGUI/AbstractView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGUI/AbstractView.cpp b/Userland/Libraries/LibGUI/AbstractView.cpp index 5568c4147a..21007ec846 100644 --- a/Userland/Libraries/LibGUI/AbstractView.cpp +++ b/Userland/Libraries/LibGUI/AbstractView.cpp @@ -308,6 +308,7 @@ void AbstractView::mousemove_event(MouseEvent& event) break; case DragOperation::Outcome::Cancelled: dbgln("Drag was cancelled!"); + m_might_drag = false; break; default: VERIFY_NOT_REACHED();