diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 05:48:43 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-20 05:48:43 +0100 |
commit | 8eae89a4054435dc81b534d91ec2a4f12ec7796f (patch) | |
tree | 52a2cfb7f557a4f275e787f82fb0b4ba059338df /LibGUI/GWidget.cpp | |
parent | b91479d9b90e1c6dd33c83d0a2cfc6ba94d1464e (diff) | |
download | serenity-8eae89a4054435dc81b534d91ec2a4f12ec7796f.zip |
Start bringing up LibGUI properly (formerly Widgets.)
Diffstat (limited to 'LibGUI/GWidget.cpp')
-rw-r--r-- | LibGUI/GWidget.cpp | 4 |
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) |