git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit53896e793c7bf2e6c9d3a951a94ae518bfba0803
parent6eab33b706
authorIsaac Freund <[email protected]>
date2025-12-10 11:53
XdgToplevel: don't send redundant configures

 river/XdgToplevel.zig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/river/XdgToplevel.zig b/river/XdgToplevel.zig
index 5a631b1..173612f 100644
--- a/river/XdgToplevel.zig
+++ b/river/XdgToplevel.zig
@@ -202,8 +202,8 @@ fn needsConfigure(toplevel: *XdgToplevel) bool {
     const scheduled = &toplevel.window.configure_scheduled;
     const sent = &toplevel.window.configure_sent;
 
-    if (scheduled.width != null) return true;
-    if (scheduled.height != null) return true;
+    if (scheduled.width != null and scheduled.width != sent.width) return true;
+    if (scheduled.height != null and scheduled.height != sent.height) return true;
     if (scheduled.activated != sent.activated) return true;
     if (scheduled.ssd != sent.ssd) return true;
     if (!std.meta.eql(scheduled.tiled, sent.tiled)) return true;