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.
This commit is contained in:
Andreas Kling 2020-02-11 11:52:34 +01:00
parent 6ecf90c6f8
commit 9a09437c46
Notes: sideshowbarker 2024-07-19 09:26:32 +09:00

View File

@ -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);
}