Skip to content

Commit 7f814a4

Browse files
authored
fix: Apply window snapping properly on multiple-output configurations (#1529)
1 parent 0ef372f commit 7f814a4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/shell/grabs/moving.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,9 @@ impl MoveGrab {
384384
window_geo.loc += location.to_i32_round() + grab_state.window_offset;
385385

386386
if matches!(self.previous, ManagedLayer::Floating | ManagedLayer::Sticky) {
387-
let loc = (grab_state.window_offset.to_f64() + grab_state.location).as_local();
388-
let size = window_geo.size.to_f64().as_local();
389-
let output_geom = self
390-
.cursor_output
391-
.geometry()
392-
.to_f64()
393-
.to_local(&self.cursor_output);
387+
let loc = grab_state.window_offset.to_f64() + grab_state.location;
388+
let size = window_geo.size.to_f64();
389+
let output_geom = self.cursor_output.geometry().to_f64().as_logical();
394390
let output_loc = output_geom.loc;
395391
let output_size = output_geom.size;
396392

0 commit comments

Comments
 (0)