1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:34:59 +00:00

Start bringing up LibGUI properly (formerly Widgets.)

This commit is contained in:
Andreas Kling 2019-01-20 05:48:43 +01:00
parent b91479d9b9
commit 8eae89a405
17 changed files with 258 additions and 33 deletions

View file

@ -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)