summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/Widget.cpp')
-rw-r--r--Libraries/LibGUI/Widget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Widget.cpp b/Libraries/LibGUI/Widget.cpp
index 1b57897f4a..47aaf29646 100644
--- a/Libraries/LibGUI/Widget.cpp
+++ b/Libraries/LibGUI/Widget.cpp
@@ -728,6 +728,10 @@ void Widget::set_enabled(bool enabled)
return IterationDecision::Continue;
});
+ if (!m_enabled && window() && window()->focused_widget() == this) {
+ window()->did_disable_focused_widget({});
+ }
+
Event e(Event::EnabledChange);
event(e);
update();