- More Documentation

- Vulkan Configuration Implementations
 - Fixed build errors on GCC and Clang
This commit is contained in:
2026-07-18 23:48:00 -04:00
parent ed381c4178
commit cf909624df
164 changed files with 19857 additions and 5872 deletions

View File

@@ -25,12 +25,15 @@ namespace fennec
window::window(display_server* server, const config& conf, window* parent)
: server(server), parent(parent)
, root(parent ? parent : this)
, root([&]() -> auto {
window* rt = parent ? parent : this;
while (rt->get_parent() != nullptr and rt->is_popup()) {
rt = root->get_parent();
}
return rt;
}())
, cfg(conf), state() {
state.mode = conf.mode;
while (root->get_parent() != nullptr and root->is_popup()) {
root = root->get_parent();
}
// if parent is null, root will point to this
assertf(root != nullptr, "Failed to find appropriate top-level window.");