river-status: only send mode event if client bound version 3

This commit is contained in:
Isaac Freund
2022-06-02 12:21:57 +02:00
parent d657dc791b
commit 2df2151afa
2 changed files with 8 additions and 3 deletions

View File

@ -363,8 +363,7 @@ pub fn enterMode(self: *Self, mode_id: u32) void {
var it = self.status_trackers.first;
while (it) |node| : (it = node.next) {
const seat_status = node.data.seat_status;
seat_status.sendMode(server.config.modes.items[mode_id].name);
node.data.sendMode(server.config.modes.items[mode_id].name);
}
}