Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
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;