WindowServer+LibGUI: Change cursor icon if DragEnter event was accepted

This commit is contained in:
Karol Kosek 2022-06-20 11:56:18 +02:00 committed by Sam Atkins
commit 2e244fc85b
Notes: sideshowbarker 2024-07-17 07:35:36 +09:00
6 changed files with 30 additions and 7 deletions

View file

@ -824,6 +824,13 @@ Messages::WindowServer::StartDragResponse ConnectionFromClient::start_drag(Strin
return true;
}
void ConnectionFromClient::set_accepts_drag(bool accepts)
{
auto& wm = WindowManager::the();
VERIFY(wm.dnd_client());
wm.set_accepts_drag(accepts);
}
Messages::WindowServer::SetSystemThemeResponse ConnectionFromClient::set_system_theme(String const& theme_path, String const& theme_name, bool keep_desktop_background)
{
bool success = WindowManager::the().update_theme(theme_path, theme_name, keep_desktop_background);