[wayland] Add missing const qualifier in resizeWithChecks
Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24330icc-effect-master
parent
7c3d014f21
commit
07ded57273
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue