From bf6810a8f9d6cc82050e7d9c0cfb06358301b574 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 29 Oct 2026 08:54:42 -0300 Subject: gui: a borderless window, no title bar or frame from SDL or the compositor Co-Authored-By: Claude Opus 5.5 --- src/gui/gui.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') 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; -- cgit v1.3