diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-15 22:29:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-16 00:58:26 +0200 |
commit | 6548ae8afda66264c3ba68463cbbe8d78e37b839 (patch) | |
tree | 09af4f78df31df4eeedaed6fe307f72b0fcde1ad /Userland/Libraries/LibGUI/Widget.h | |
parent | 1885445a7912c96e0e7c4c79a5fa9c25f87c1c31 (diff) | |
download | serenity-6548ae8afda66264c3ba68463cbbe8d78e37b839.zip |
LibGUI: Retain the active input tracking widget's cursor
Until the tracking stops, we want to keep displaying the same cursor.
Diffstat (limited to 'Userland/Libraries/LibGUI/Widget.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Widget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Widget.h b/Userland/Libraries/LibGUI/Widget.h index f856f137b6..ee868b7d54 100644 --- a/Userland/Libraries/LibGUI/Widget.h +++ b/Userland/Libraries/LibGUI/Widget.h @@ -345,7 +345,7 @@ public: virtual Gfx::IntRect children_clip_rect() const; - AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> override_cursor() const { return m_override_cursor; } + AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>> const& override_cursor() const { return m_override_cursor; } void set_override_cursor(AK::Variant<Gfx::StandardCursor, NonnullRefPtr<Gfx::Bitmap>>); bool load_from_gml(StringView); |