https://bugs.kde.org/show_bug.cgi?id=449105

--- Comment #38 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 2c7301b3eea93e345c36cd89a72e41ec5d421861 by Vlad Zahorodnii.
Committed on 11/03/2024 at 20:16.
Pushed by vladz into branch 'master'.

Make Window::interactiveMoveOffset() relative

Window::interactiveMoveOffset() stores the move offset in pixels, but it
is somewhat annoying to deal with when the window size changes, for example
when the window is unmaximized.

This change makes Window::interactiveMoveOffset() store a ratio where
the move offset can be found. This simplifies the code a bit and fixes
the cursor jumping to the topleft window corner. Although there are other
glitches.

M  +1    -2    src/events.cpp
M  +14   -23   src/window.cpp
M  +0    -9    src/window.h
M  +1    -2    src/xdgshellwindow.cpp

https://invent.kde.org/plasma/kwin/-/commit/2c7301b3eea93e345c36cd89a72e41ec5d421861

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to