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.
This commit is contained in:
parent
de544e1d31
commit
2ff8a2d200
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue