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

commit7a1ae811b61c599bac0bc5b31dc84d4136ebb618
parent21f203b447
authorIsaac Freund <[email protected]>
date2023-02-28 23:00
csd-filter-add/remove: add missing applyPending()

A transaction is now necessary to update border state.

 river/command/filter.zig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/river/command/filter.zig b/river/command/filter.zig
index ad9bef2..88034c8 100644
--- a/river/command/filter.zig
+++ b/river/command/filter.zig
@@ -90,6 +90,7 @@ pub fn csdFilterAdd(
     gop.key_ptr.* = try util.gpa.dupe(u8, key);
 
     csdFilterUpdateViews(kind, key, .add);
+    server.root.applyPending();
 }
 
 pub fn csdFilterRemove(
@@ -110,6 +111,7 @@ pub fn csdFilterRemove(
     if (map.fetchRemove(key)) |kv| {
         util.gpa.free(kv.key);
         csdFilterUpdateViews(kind, key, .remove);
+        server.root.applyPending();
     }
 }