summaryrefslogtreecommitdiff
path: root/LibGUI/GWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibGUI/GWidget.cpp')
-rw-r--r--LibGUI/GWidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/LibGUI/GWidget.cpp b/LibGUI/GWidget.cpp
index 08150f7fc0..c959dc7858 100644
--- a/LibGUI/GWidget.cpp
+++ b/LibGUI/GWidget.cpp
@@ -37,8 +37,6 @@ void GWidget::event(GEvent& event)
case GEvent::Paint:
m_hasPendingPaintEvent = false;
if (auto* win = window()) {
- if (win->is_being_dragged())
- return;
if (!win->is_visible())
return;
}
@@ -112,7 +110,7 @@ void GWidget::update()
if (m_hasPendingPaintEvent)
return;
m_hasPendingPaintEvent = true;
- GEventLoop::main().postEvent(w, make<GPaintEvent>(relativeRect()));
+ GEventLoop::main().post_event(w, make<GPaintEvent>(relativeRect()));
}
GWidget::HitTestResult GWidget::hitTest(int x, int y)