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:
parent
6637dec958
commit
73895ce043
12 changed files with 143 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue