[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:
parent
7c3d014f21
commit
07ded57273
1 changed files with 1 additions and 1 deletions
|
@ -1259,7 +1259,7 @@ void XdgShellClient::handleCommitted()
|
||||||
|
|
||||||
void XdgShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force)
|
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
|
// don't allow growing larger than workarea
|
||||||
if (w > area.width()) {
|
if (w > area.width()) {
|
||||||
w = area.width();
|
w = area.width();
|
||||||
|
|
Loading…
Reference in a new issue