diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2024-01-03 16:31:30 -0600 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2024-01-04 10:10:31 -0600 |
| commit | ebb6d1bdd1ce4d0a2a0f1dff275cdef8a7722bea (patch) | |
| tree | 823a710315ab1ef0189bc81e4d275f9fa247a52c | |
| parent | 28dcd8320ac478a9aba36da7e261bc676a5a723e (diff) | |
| download | river-ebb6d1bdd1ce4d0a2a0f1dff275cdef8a7722bea.tar.gz river-ebb6d1bdd1ce4d0a2a0f1dff275cdef8a7722bea.tar.xz | |
xdg-activation: fix race with transaction system
This code could allows the view to be focused and urgent at the
same time if the request to activate the view is received just after
the pending focus has been set but before the transaction completes.
| -rw-r--r-- | river/Server.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/river/Server.zig b/river/Server.zig index 56bb2ca..c5b0b39 100644 --- a/river/Server.zig +++ b/river/Server.zig @@ -289,7 +289,7 @@ fn handleRequestActivate( const node_data = SceneNodeData.fromSurface(event.surface) orelse return; switch (node_data.data) { - .view => |view| if (view.current.focus == 0) { + .view => |view| if (view.pending.focus == 0) { view.pending.urgent = true; server.root.applyPending(); }, |
