From f1675a480067b956a551785148af545f80cb6306 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Wed, 23 Sep 2026 09:03:08 +0200 Subject: [PATCH] Revert "client: do not drop configure events based on current committed size" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 242ffd7a7521a74fc9edf68bcc7e6a3cd75ec860. 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 --- client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.h b/client.h index a6fe207..eb1bb47 100644 --- a/client.h +++ b/client.h @@ -376,7 +376,9 @@ client_set_size(Client *c, uint32_t width, uint32_t height) return; } #endif - wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height); + 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); } static inline void