git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit40ea8e11bc217ff0dece73f6191f9ae2b6c8c64e
parent6ec6de08a9
authorIsaac Freund <[email protected]>
date2021-01-07 22:58
cursor: focus output before view on follow cursor

 river/Cursor.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/river/Cursor.zig b/river/Cursor.zig
index 0cc2b9a..ec470b3 100644
--- a/river/Cursor.zig
+++ b/river/Cursor.zig
@@ -536,8 +536,8 @@ fn passthrough(self: *Self, time: u32) void {
             const follow_mode = config.focus_follows_cursor;
             if (follow_mode == .strict or (follow_mode == .normal and focus_change)) {
                 if (View.fromWlrSurface(surface)) |view| {
-                    self.seat.focus(view);
                     self.seat.focusOutput(view.output);
+                    self.seat.focus(view);
                     root.startTransaction();
                 }
             }