1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 17:55:07 +00:00

GWidget: Ignore updates if self has !updates_enabled().

We were only checking when propagating updates to parents, duh.
This commit is contained in:
Andreas Kling 2019-05-02 04:19:59 +02:00
parent 6d5507313e
commit 49d0cdabac

View file

@ -293,6 +293,9 @@ void GWidget::update(const Rect& rect)
if (!is_visible())
return;
if (!updates_enabled())
return;
GWindow* window = m_window;
GWidget* parent = parent_widget();
while (parent) {