1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

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
parent e5674d9666
commit 2e244fc85b
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);