Merge pull request #87 from pop-os/floating-drag_jammy
shell: Fix position of floating windows before/after drag
This commit is contained in:
commit
6492cfb96a
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ impl MoveGrabState {
|
|||
elements.extend(AsRenderElements::<R>::render_elements::<I>(
|
||||
&self.window,
|
||||
renderer,
|
||||
render_location.to_physical_precise_round(scale),
|
||||
(render_location - self.window.geometry().loc).to_physical_precise_round(scale),
|
||||
scale,
|
||||
));
|
||||
elements
|
||||
|
|
@ -180,7 +180,7 @@ impl MoveSurfaceGrab {
|
|||
|
||||
let grab_state = MoveGrabState {
|
||||
window: window.clone(),
|
||||
window_offset: dbg!(initial_window_location) + output.geometry().loc
|
||||
window_offset: dbg!(initial_window_location)
|
||||
- dbg!(initial_cursor_location.to_i32_round()),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue