Revert "client: do not drop configure events based on current committed size"

This reverts commit 242ffd7a75.

Removing this conditon can cause a xdg_toplevel.configure ↔
wl_surface.commit loop that uses 100% CPU.

Fixes https://codeberg.org/dwl/dwl/issues/1245
Fixes https://codeberg.org/dwl/dwl/issues/1246
This commit is contained in:
Guido Cella
2026-09-23 09:03:08 +02:00
parent a75ca79630
commit f1675a4800
+2
View File
@@ -376,6 +376,8 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
return;
}
#endif
if ((int32_t)width != c->surface.xdg->toplevel->current.width
|| (int32_t)height != c->surface.xdg->toplevel->current.height)
wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height);
}