From 2ff8a2d20083272e61f87abbd7a37317e00def85 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 10 Apr 2024 19:43:18 -0700 Subject: [PATCH] moving: Show `snapping_indicator` only on current output Without this check, a floating window that is dragged near an edge between monitors causes snapping indicators to show on both, since the window intersects both. --- src/shell/grabs/moving.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/grabs/moving.rs b/src/shell/grabs/moving.rs index 50a38bbe..a9bfb0d5 100644 --- a/src/shell/grabs/moving.rs +++ b/src/shell/grabs/moving.rs @@ -147,7 +147,7 @@ impl MoveGrabState { }; let snapping_indicator = match &self.snapping_zone { - Some(t) => { + Some(t) if &seat.active_output() == output => { let base_color = theme.palette.neutral_9; let overlay_geometry = t.overlay_geometry(non_exclusive_geometry); vec![ @@ -177,7 +177,7 @@ impl MoveGrabState { .into(), ] } - None => vec![], + _ => vec![], }; let (window_elements, popup_elements) = self