Commit 6d1c97c4 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

workspace: fix resize snapping

With the existing behavior there was a 1px gap between windows
parent 045da603
Pipeline #208252 passed with stage
in 11 minutes and 28 seconds
......@@ -2652,8 +2652,8 @@ QRectF Workspace::adjustWindowSize(Window *window, QRectF moveResizeGeom, Gravit
for (auto l = m_allClients.constBegin(); l != m_allClients.constEnd(); ++l) {
if ((*l)->isOnCurrentDesktop() && !(*l)->isMinimized()
&& (*l) != window) {
lx = (*l)->x() - 1;
ly = (*l)->y() - 1;
lx = (*l)->x();
ly = (*l)->y();
lrx = (*l)->x() + (*l)->width();
lry = (*l)->y() + (*l)->height();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment