cursor: focus output before view on follow cursor

This commit is contained in:
Isaac Freund 2021-01-07 22:58:22 +01:00
parent 7249f5c9c3
commit a029105f15

View file

@ -536,8 +536,8 @@ fn passthrough(self: *Self, time: u32) void {
const follow_mode = config.focus_follows_cursor; const follow_mode = config.focus_follows_cursor;
if (follow_mode == .strict or (follow_mode == .normal and focus_change)) { if (follow_mode == .strict or (follow_mode == .normal and focus_change)) {
if (View.fromWlrSurface(surface)) |view| { if (View.fromWlrSurface(surface)) |view| {
self.seat.focus(view);
self.seat.focusOutput(view.output); self.seat.focusOutput(view.output);
self.seat.focus(view);
root.startTransaction(); root.startTransaction();
} }
} }