Fix current view tags status
This commit is contained in:
		| @ -718,7 +718,10 @@ fn commitTransaction(root: *Root) void { | ||||
|  | ||||
|     { | ||||
|         var it = server.input_manager.seats.first; | ||||
|         while (it) |node| : (it = node.next) node.data.cursor.updateState(); | ||||
|         while (it) |node| : (it = node.next) { | ||||
|             node.data.cursor.updateState(); | ||||
|             node.data.sendFocusedView(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     { | ||||
|  | ||||
| @ -220,6 +220,11 @@ 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(); | ||||
| } | ||||
|  | ||||
| /// Switch focus to the target, handling unfocus and input inhibition | ||||
| /// properly. This should only be called directly if dealing with layers or | ||||
| /// override redirect xwayland views. | ||||
| @ -288,8 +293,7 @@ pub fn setFocusRaw(seat: *Seat, new_focus: FocusTarget) void { | ||||
|     seat.cursor.may_need_warp = true; | ||||
|  | ||||
|     // Inform any clients tracking status of the change | ||||
|     var it = seat.status_trackers.first; | ||||
|     while (it) |node| : (it = node.next) node.data.sendFocusedView(); | ||||
|     seat.sendFocusedView(); | ||||
| } | ||||
|  | ||||
| /// Send keyboard enter/leave events and handle pointer constraints | ||||
|  | ||||
		Reference in New Issue
	
	Block a user