From d1ebf3c9855ec643c877a2216eaad21e179cd447 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 14 Sep 2026 10:42:59 +0200 Subject: [PATCH] fix firefox opening with rounded corners Fixes https://codeberg.org/dwl/dwl/issues/1169 The c->isfloating check is needed to have the correct floating window size with e.g. alacritty -o window.dimensions.columns=15 window.dimensions.lines=10. --- dwl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 23bb3f6..c0c617b 100644 --- a/dwl.c +++ b/dwl.c @@ -951,6 +951,9 @@ commitnotify(struct wl_listener *listener, void *data) if (c->decoration) requestdecorationmode(&c->set_decoration_mode, c->decoration); wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, 0, 0); + if (!c->isfloating) + client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | + WLR_EDGE_RIGHT); return; } @@ -1881,7 +1884,6 @@ mapnotify(struct wl_listener *listener, void *data) } /* Initialize client geometry with room for border */ - client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT | WLR_EDGE_RIGHT); c->geom.width += 2 * c->bw; c->geom.height += 2 * c->bw;