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