Taskbar: More bringup work. We now see a basic window list.

This commit is contained in:
Andreas Kling 2019-04-04 01:44:35 +02:00
parent ea801a99dc
commit 96104b5524
Notes: sideshowbarker 2024-07-19 14:49:55 +09:00
20 changed files with 339 additions and 12 deletions

View file

@ -27,6 +27,10 @@ void GWidget::child_event(GChildEvent& event)
if (event.child() && event.child()->is_widget() && layout())
layout()->add_widget(static_cast<GWidget&>(*event.child()));
}
if (event.type() == GEvent::ChildRemoved) {
if (event.child() && event.child()->is_widget() && layout())
layout()->remove_widget(static_cast<GWidget&>(*event.child()));
}
return GObject::child_event(event);
}