From 9a09437c46b24cd1bdab9457cb497078de6d512d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 11 Feb 2020 11:52:34 +0100 Subject: [PATCH] LibGUI: Splitter should forget resize candidates after cursor leaves Otherwise we'll keep highlighting the grabbable rect even after the cursor has left the splitter widget. --- Libraries/LibGUI/Splitter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/Splitter.cpp b/Libraries/LibGUI/Splitter.cpp index fb35e20c76b..28d67950656 100644 --- a/Libraries/LibGUI/Splitter.cpp +++ b/Libraries/LibGUI/Splitter.cpp @@ -175,6 +175,8 @@ void Splitter::mouseup_event(MouseEvent& event) if (event.button() != MouseButton::Left) return; m_resizing = false; + m_first_resizee = nullptr; + m_second_resizee = nullptr; if (!rect().contains(event.position())) window()->set_override_cursor(StandardCursor::None); }