xwm: More fixes

This commit is contained in:
Victoria Brekenfeld 2023-01-23 18:25:01 +01:00
parent 1d28574088
commit 9b1221edc5
14 changed files with 311 additions and 80 deletions

View file

@ -23,7 +23,7 @@ use smithay::{
Seat,
},
output::Output,
utils::{IsAlive, Logical, Point, Serial},
utils::{IsAlive, Logical, Point, Rectangle, Serial},
};
use std::cell::RefCell;
@ -183,6 +183,10 @@ impl MoveSurfaceGrab {
.output_geometry(&output)
.unwrap()
.loc;
grab_state.window.set_geometry(Rectangle::from_loc_and_size(
window_location + offset,
grab_state.window.geometry().size,
));
state
.common
.shell