x11: Fix interactive move offset

Only the y component has to be divided by height(), not the whole QPointF()
expression.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent b2babac3d0
commit fa4635e570
  1. 2
      src/events.cpp

@ -1323,7 +1323,7 @@ void X11Window::NETMoveResize(qreal x_root, qreal y_root, NET::Direction directi
finishInteractiveMoveResize(false);
}
setInteractiveMoveResizePointerButtonDown(true);
setInteractiveMoveOffset(QPointF(qreal(x_root - x()) / width(), qreal(y_root - y())) / height()); // map from global
setInteractiveMoveOffset(QPointF(qreal(x_root - x()) / width(), qreal(y_root - y()) / height())); // map from global
setUnrestrictedInteractiveMoveResize(false);
setInteractiveMoveResizeGravity(convert[direction]);
if (!startInteractiveMoveResize()) {

Loading…
Cancel
Save