[wayland] Add missing const qualifier in resizeWithChecks

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24330
This commit is contained in:
Vlad Zahorodnii 2019-09-26 18:13:15 +03:00
parent 7c3d014f21
commit 07ded57273

View file

@ -1259,7 +1259,7 @@ void XdgShellClient::handleCommitted()
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();