Fix last commit
This commit is contained in:
@ -707,7 +707,10 @@ fn commitTransaction(root: *Root) void {
|
|||||||
|
|
||||||
{
|
{
|
||||||
var it = server.input_manager.seats.iterator(.forward);
|
var it = server.input_manager.seats.iterator(.forward);
|
||||||
while (it.next()) |seat| seat.cursor.updateState();
|
while (it.next()) |seat| {
|
||||||
|
seat.cursor.updateState();
|
||||||
|
seat.sendFocusedView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -243,8 +243,8 @@ pub fn focus(seat: *Seat, _target: ?*View) void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn sendFocusedView(seat: *Seat) void {
|
pub fn sendFocusedView(seat: *Seat) void {
|
||||||
var it = seat.status_trackers.first;
|
var it = seat.status_trackers.iterator(.forward);
|
||||||
while (it) |node| : (it = node.next) node.data.sendFocusedView();
|
while (it.next()) |tracker| tracker.sendFocusedView();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Switch focus to the target, handling unfocus and input inhibition
|
/// Switch focus to the target, handling unfocus and input inhibition
|
||||||
|
@ -376,7 +376,6 @@ pub fn commitTransaction(view: *View) void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
view.updateSceneState();
|
view.updateSceneState();
|
||||||
view.notifyState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn updateSceneState(view: *View) void {
|
pub fn updateSceneState(view: *View) void {
|
||||||
|
Reference in New Issue
Block a user