diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2022-05-21 16:27:46 +0200 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2022-11-13 16:45:18 +0100 |
| commit | cce729d89dec7cee7bc4812be7ac67f374d693c3 (patch) | |
| tree | fc0f671c56998f09260cf5a54463d35b9bee9916 | |
| parent | 98d2f6a56811ea4617447db133bef9def8479c6f (diff) | |
| download | river-cce729d89dec7cee7bc4812be7ac67f374d693c3.tar.gz river-cce729d89dec7cee7bc4812be7ac67f374d693c3.tar.xz | |
session-lock: send wl_pointer.enter immediately
| -rw-r--r-- | river/LockSurface.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/river/LockSurface.zig b/river/LockSurface.zig index 84b0839..2ce8a63 100644 --- a/river/LockSurface.zig +++ b/river/LockSurface.zig @@ -107,6 +107,8 @@ fn handleOutputMode(listener: *wl.Listener(*wlr.Output), _: *wlr.Output) void { fn handleMap(listener: *wl.Listener(void)) void { const lock_surface = @fieldParentPtr(LockSurface, "map", listener); + lock_surface.output().lock_surface = lock_surface; + { var it = server.input_manager.seats.first; while (it) |node| : (it = node.next) { @@ -114,10 +116,9 @@ fn handleMap(listener: *wl.Listener(void)) void { if (seat.focused != .lock_surface) { seat.setFocusRaw(.{ .lock_surface = lock_surface }); } + seat.cursor.updateState(); } } - - lock_surface.output().lock_surface = lock_surface; } fn handleDestroy(listener: *wl.Listener(void)) void { |
