aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2023-07-11 01:11:40 +0200
committerLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2023-07-11 01:11:40 +0200
commitc16628c7f57c51d50f2d10a96c265fb0afaddb02 (patch)
treedaf5eca7877c7e66e9128fc827381821d294b48c
parentb35d779122eeb2a31a8300e407191f12bb883e8c (diff)
downloadriver-c16628c7f57c51d50f2d10a96c265fb0afaddb02.tar.gz
river-c16628c7f57c51d50f2d10a96c265fb0afaddb02.tar.xz
river: fix spatial direction focusing / swapping
-rw-r--r--river/command/view_operations.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/river/command/view_operations.zig b/river/command/view_operations.zig
index db2af3a..0e8b092 100644
--- a/river/command/view_operations.zig
+++ b/river/command/view_operations.zig
@@ -115,6 +115,7 @@ fn getTarget(seat: *Seat, direction_str: []const u8, target_mode: TargetMode) !?
var target_distance: usize = std.math.maxInt(usize);
var it = output.pending.wm_stack.iterator(.forward);
while (it.next()) |view| {
+ if (output.pending.tags & view.pending.tags == 0) continue;
if (target_mode == .skip_float and view.pending.float) continue;
if (view == seat.focused.view) continue;
const view_position = Vector.positionOfBox(view.current.box);