diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-13 00:16:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-13 00:16:40 +0200 |
commit | c2b5519ce2576387502fe30748080e47a7d663fd (patch) | |
tree | f365fc23b4f5299e4dbd6075770122771f28c5fc | |
parent | 23ee68c63ef9efaca532caf24e724c727845be27 (diff) | |
download | serenity-c2b5519ce2576387502fe30748080e47a7d663fd.zip |
LibGUI+WindowServer: Allow apps to use the "move" cursor :^)
-rw-r--r-- | Libraries/LibGUI/Window.h | 2 | ||||
-rw-r--r-- | Services/WindowServer/Cursor.cpp | 2 | ||||
-rw-r--r-- | Services/WindowServer/Cursor.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Window.h b/Libraries/LibGUI/Window.h index 01221a86ed..47cb8fefbe 100644 --- a/Libraries/LibGUI/Window.h +++ b/Libraries/LibGUI/Window.h @@ -47,6 +47,8 @@ enum class StandardCursor { ResizeDiagonalTLBR, ResizeDiagonalBLTR, Hand, + Drag, + Move, }; class Window : public Core::Object { diff --git a/Services/WindowServer/Cursor.cpp b/Services/WindowServer/Cursor.cpp index 42e431f481..ef41fb7e77 100644 --- a/Services/WindowServer/Cursor.cpp +++ b/Services/WindowServer/Cursor.cpp @@ -70,6 +70,8 @@ RefPtr<Cursor> Cursor::create(StandardCursor standard_cursor) return WindowManager::the().hand_cursor(); case StandardCursor::Drag: return WindowManager::the().drag_cursor(); + case StandardCursor::Move: + return WindowManager::the().move_cursor(); } ASSERT_NOT_REACHED(); } diff --git a/Services/WindowServer/Cursor.h b/Services/WindowServer/Cursor.h index 5173bd86a1..6cc4c03ae7 100644 --- a/Services/WindowServer/Cursor.h +++ b/Services/WindowServer/Cursor.h @@ -40,6 +40,7 @@ enum class StandardCursor { ResizeDiagonalBLTR, Hand, Drag, + Move, }; class Cursor : public RefCounted<Cursor> { |