- More Documentation
- Vulkan Configuration Implementations - Fixed build errors on GCC and Clang
This commit is contained in:
@@ -33,7 +33,7 @@ void platform::initialize() {
|
||||
return;
|
||||
}
|
||||
|
||||
logger::log(format("Initializing platform {}", get_type().name()));
|
||||
logger::log(logger::alert, format("Initializing platform {}", get_type().name()));
|
||||
|
||||
// Setup Window Manager
|
||||
wmanager = make_unique<window_manager>(this);
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user