diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-11 11:52:34 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-11 11:53:38 +0100 |
commit | 9a09437c46b24cd1bdab9457cb497078de6d512d (patch) | |
tree | 98a7db3aaed965f555aba5c260c6e35497d0ac2b /Libraries/LibGUI/Splitter.cpp | |
parent | 6ecf90c6f87a9a49c4f14c823f7910fafed6701c (diff) | |
download | serenity-9a09437c46b24cd1bdab9457cb497078de6d512d.zip |
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.
Diffstat (limited to 'Libraries/LibGUI/Splitter.cpp')
-rw-r--r-- | Libraries/LibGUI/Splitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Splitter.cpp b/Libraries/LibGUI/Splitter.cpp index fb35e20c76..28d6795065 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); } |