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

LibGUI: Set override cursor to none when widget is disabled

This commit is contained in:
thankyouverycool 2021-03-09 16:58:03 -05:00 committed by Andreas Kling
parent cf866cc75a
commit 0e63141a19

View file

@ -770,6 +770,9 @@ void Widget::set_enabled(bool enabled)
window()->did_disable_focused_widget({});
}
if (!m_enabled)
set_override_cursor(Gfx::StandardCursor::None);
Event e(Event::EnabledChange);
event(e);
update();