1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

Add a clock widget.

This commit is contained in:
Andreas Kling 2018-10-12 12:18:59 +02:00
parent 6637dec958
commit 73895ce043
12 changed files with 143 additions and 15 deletions

View file

@ -50,10 +50,12 @@ void Window::event(Event& event)
}
if (event.isPaintEvent()) {
if (m_mainWidget) {
printf("forward to main widget\n");
return m_mainWidget->event(event);
if (isBeingDragged()) {
// Ignore paint events during window drag.
return;
}
if (m_mainWidget)
return m_mainWidget->event(event);
}
return Object::event(event);