From 8f5d4d366985c9820b5cb8f7e7f59d1f03820285 Mon Sep 17 00:00:00 2001 From: Ben Buhse Date: Thu, 2 Apr 2026 16:00:32 -0500 Subject: [PATCH] Propose 0,0 dimensions for windows floating by rule --- src/Window.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Window.zig b/src/Window.zig index 3c916cb..460463d 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -297,8 +297,9 @@ pub fn manage(window: *Window) void { // Use 75% of the output's usable size, clamped to the window's dimension hints. if (window.output) |output| { if (window.rect.width == 0) { - // The window didn't even *exist* before, i.e. we only got here via a floating window rule. - // Don't propose dimensions, let it start how it wants. + // The window didn't even *exist* before, i.e. we only got here via a floating window rule, + // so just let it choose its own dimensions. + river_window_v1.proposeDimensions(0, 0); if (window.pending_manage.dimensions) |dimensions| { // TODO: Is it even possible to make it in here? I need to ask ifreund, probably // We want to center the output; this works even if the proposed dimensions