Skip to content

Commit 0049f03

Browse files
Headless fix (#1230)
* setting headless mode now properly updates * Fixed logic for updating headless state (even though unimplemented)
1 parent ad377be commit 0049f03

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/platform/glfw/Core.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ pub fn update(self: *Core, app: anytype) !bool {
686686

687687
// Headless changes
688688
if (self.current_headless != self.last_headless) {
689-
self.current_headless = self.last_headless;
689+
self.last_headless = self.current_headless;
690690
if (self.current_headless) self.window.hide() else self.window.show();
691691
}
692692

src/core/platform/x11/Core.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn update(self: *Core, app: anytype) !bool {
808808

809809
// Headless changes
810810
if (self.current_headless != self.last_headless) {
811-
self.current_headless = self.last_headless;
811+
self.last_headless = self.current_headless;
812812
// if (self.current_headless) self.window.hide() else self.window.show();
813813
}
814814

0 commit comments

Comments
 (0)