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.
This commit is contained in:
Guido Cella
2026-09-14 10:42:59 +02:00
parent 8f52e96be4
commit d1ebf3c985
+3 -1
View File
@@ -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;