diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -1260,7 +1260,7 @@ void XdgShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force) { - QRect area = workspace()->clientArea(WorkArea, this); + const QRect area = workspace()->clientArea(WorkArea, this); // don't allow growing larger than workarea if (w > area.width()) { w = area.width();