WindowServer+LibGfx: Enumerate Disallow cursor

This commit is contained in:
thankyouverycool 2021-03-11 10:28:56 -05:00 committed by Andreas Kling
commit 142ca4b818
Notes: sideshowbarker 2024-07-18 21:29:45 +09:00
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,7 @@ enum class StandardCursor {
Drag,
Move,
Wait,
Disallowed,
__Count,
};

View file

@ -181,6 +181,8 @@ RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor)
return WindowManager::the().move_cursor();
case Gfx::StandardCursor::Wait:
return WindowManager::the().wait_cursor();
case Gfx::StandardCursor::Disallowed:
return WindowManager::the().disallowed_cursor();
default:
VERIFY_NOT_REACHED();
}