summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 08:54:42 -0300
committerGabriel Schneider <[email protected]>2026-10-29 08:54:42 -0300
commitbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (patch)
tree3203626e5f37048d6f2fef9a59c7e0a1ece584c2
parentcaffd9c1f8742a17431f7de0a2824d3fc02bfd72 (diff)
downloadpardes-bf6810a8f9d6cc82050e7d9c0cfb06358301b574.tar.gz
pardes-bf6810a8f9d6cc82050e7d9c0cfb06358301b574.zip
gui: a borderless window, no title bar or frame from SDL or the compositor
Co-Authored-By: Claude Opus 5.5 <[email protected]>
-rw-r--r--src/gui/gui.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index f0802362..01272b41 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -1939,7 +1939,9 @@ fn runNative(init: std.process.Init, opts_in: pardes.Options, attach: ?[]const u
// arrays per command buffer (VULKAN_INTERNAL_DestroyCommandPool; SDL's
// main branch frees them).
defer c.SDL_Quit();
- var win_flags: c.SDL_WindowFlags = c.SDL_WINDOW_RESIZABLE;
+ // No title bar or frame from anyone: borderless asks the compositor for
+ // none (xdg-decoration's client side, which SDL then leaves undrawn).
+ var win_flags: c.SDL_WindowFlags = c.SDL_WINDOW_RESIZABLE | c.SDL_WINDOW_BORDERLESS;
if (!test_mode) win_flags |= c.SDL_WINDOW_HIGH_PIXEL_DENSITY;
// A test run renders to the capture texture; keep it off the desktop.
if (test_mode) win_flags |= c.SDL_WINDOW_HIDDEN;