summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Cursor.cpp
diff options
context:
space:
mode:
authorMustafa Quraish <mustafaq9@gmail.com>2021-08-31 22:16:53 -0400
committerAndreas Kling <kling@serenityos.org>2021-09-04 03:35:23 +0200
commit30ce1d856292a025b5f0e1fd1e4ddbbd6991b8c5 (patch)
tree1e128afcd24a92536ef0f64461cfabef902528af /Userland/Services/WindowServer/Cursor.cpp
parent81326ac8c79f97d352818ecb4381ba2d167280d5 (diff)
downloadserenity-30ce1d856292a025b5f0e1fd1e4ddbbd6991b8c5.zip
Cursors: Add new Eyedropper cursor
This can be used immediately in PixelPaint (separate commit), but I am adding this as a system-wide cursor since it may also be useful for other applications that want to use it.
Diffstat (limited to 'Userland/Services/WindowServer/Cursor.cpp')
-rw-r--r--Userland/Services/WindowServer/Cursor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/Cursor.cpp b/Userland/Services/WindowServer/Cursor.cpp
index 4f5eda1b0b..18fc08f6a3 100644
--- a/Userland/Services/WindowServer/Cursor.cpp
+++ b/Userland/Services/WindowServer/Cursor.cpp
@@ -109,6 +109,8 @@ RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor)
return WindowManager::the().wait_cursor();
case Gfx::StandardCursor::Disallowed:
return WindowManager::the().disallowed_cursor();
+ case Gfx::StandardCursor::Eyedropper:
+ return WindowManager::the().eyedropper_cursor();
default:
VERIFY_NOT_REACHED();
}