Fix last commit

This commit is contained in:
2025-10-09 15:51:32 -07:00
parent 7ce21a44d8
commit 936d1157b4
3 changed files with 6 additions and 4 deletions

View File

@ -707,7 +707,10 @@ fn commitTransaction(root: *Root) void {
{
var it = server.input_manager.seats.iterator(.forward);
while (it.next()) |seat| seat.cursor.updateState();
while (it.next()) |seat| {
seat.cursor.updateState();
seat.sendFocusedView();
}
}
{

View File

@ -243,8 +243,8 @@ pub fn focus(seat: *Seat, _target: ?*View) void {
}
pub fn sendFocusedView(seat: *Seat) void {
var it = seat.status_trackers.first;
while (it) |node| : (it = node.next) node.data.sendFocusedView();
var it = seat.status_trackers.iterator(.forward);
while (it.next()) |tracker| tracker.sendFocusedView();
}
/// Switch focus to the target, handling unfocus and input inhibition

View File

@ -376,7 +376,6 @@ pub fn commitTransaction(view: *View) void {
}
view.updateSceneState();
view.notifyState();
}
pub fn updateSceneState(view: *View) void {