move_grab: render window across multiple screens
This commit is contained in:
parent
e9813b6a5d
commit
a114eb0b35
1 changed files with 5 additions and 1 deletions
|
|
@ -221,7 +221,11 @@ impl MoveGrabState {
|
||||||
I: From<MoveGrabRenderElement>
|
I: From<MoveGrabRenderElement>
|
||||||
{
|
{
|
||||||
let cursor_at = seat.get_pointer().unwrap().current_location();
|
let cursor_at = seat.get_pointer().unwrap().current_location();
|
||||||
if !output.geometry().contains(cursor_at.to_i32_round()) {
|
let delta = cursor_at - self.initial_cursor_location;
|
||||||
|
let mut window_geo = self.window.bbox();
|
||||||
|
window_geo.loc += (self.initial_window_location.to_f64() + delta).to_i32_round();
|
||||||
|
|
||||||
|
if !output.geometry().intersection(window_geo).is_some() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue