- Setup libdecor, which is used automatically when available.
TODO: - xdg decorations - threading - thread-safe window manager
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user