- Setup libdecor, which is used automatically when available.

TODO:
 - xdg decorations
 - threading
 - thread-safe window manager
This commit is contained in:
2025-12-15 23:40:06 -05:00
parent 97f5bbfe00
commit 520a0e1363
25 changed files with 508 additions and 90 deletions

View File

@@ -34,18 +34,22 @@ inline void fennec_test_platform() {
display_server* display = platform->get_display_server();
window* window = display->create_window({
.title = string("test window"),
.flags = {},
window* window = display->create_window(window::config {
.title = string("fennec-test"),
.flags = { },
.mode = window::mode_windowed,
.parent = window::nullid,
.size = ivec2{ 720, 480 },
.rect = {
.position = { 0, 0 },
.size = { 720, 480 },
},
.fractional_scaling = 0,
.accessibility = { string("test window"), string("test window description") }
});
assertf(window != nullptr, "Failed to create test window.");
window->show();
window->initialize();
while (window->is_running()) {
window->begin_frame();
@@ -54,7 +58,7 @@ inline void fennec_test_platform() {
display->dispatch();
}
window->hide();
window->shutdown();
delete window;