diff options
Diffstat (limited to 'LibGUI/GWindow.cpp')
-rw-r--r-- | LibGUI/GWindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index 7c8e1461eb..3c9bc8bf73 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -140,6 +140,17 @@ void GWindow::set_rect(const Rect& a_rect) GEventLoop::current().post_message_to_server(request); } +void GWindow::set_override_cursor(GStandardCursor cursor) +{ + if (!m_window_id) + return; + WSAPI_ClientMessage request; + request.type = WSAPI_ClientMessage::Type::SetWindowOverrideCursor; + request.window_id = m_window_id; + request.cursor.cursor = (WSAPI_StandardCursor)cursor; + GEventLoop::current().post_message_to_server(request); +} + void GWindow::event(GEvent& event) { if (event.is_mouse_event()) { |