Merge pull request #87 from pop-os/floating-drag_jammy

shell: Fix position of floating windows before/after drag
This commit is contained in:
Victoria Brekenfeld 2023-03-09 16:14:17 +01:00 committed by GitHub
commit 6492cfb96a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()),
};