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

commit3367519d419724845597aed1b734acc60156bf7e
parent7bb800ecc1
authorIsaac Freund <[email protected]>
date2026-01-30 19:40
Seat: fix spurious window_interaction on wm connect

 river/Seat.zig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/river/Seat.zig b/river/Seat.zig
index 2580a26..5a0f12a 100644
--- a/river/Seat.zig
+++ b/river/Seat.zig
@@ -413,7 +413,6 @@ pub fn manageStart(seat: *Seat) void {
                 seat_v1.sendShellSurfaceInteraction(shell_surface.object);
             },
         }
-        seat.wm_scheduled.interaction = .none;
 
         if (seat.op) |*op| {
             seat_v1.sendOpDelta(op.x - op.start_x, op.y - op.start_y);
@@ -470,6 +469,9 @@ pub fn manageStart(seat: *Seat) void {
             }
         }
     }
+    // Ensure we don't store an interaction that happens while no window manager
+    // is connected until a new window manager connects.
+    seat.wm_scheduled.interaction = .none;
 }
 
 fn handleRequestInert(