This commit is contained in:
Furkan Sahin 2026-04-15 14:52:10 -04:00 committed by GitHub
commit a6941c5811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,7 +321,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
// containers, we resize the container to match. For tiling containers,
// we only recenter the surface.
memcpy(&view->geometry, new_geo, sizeof(struct wlr_box));
if (container_is_floating(view->container)) {
bool pending_configures = xdg_surface->current.configure_serial < xdg_surface->scheduled_serial;
if (container_is_floating(view->container) && !view->container->node.instruction && !pending_configures) {
view_update_size(view);
// Only set the toplevel size the current container actually has a size.
if (view->container->current.width) {