Commit 07ded572 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[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
parent 7c3d014f
...@@ -1259,7 +1259,7 @@ void XdgShellClient::handleCommitted() ...@@ -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();
......
Markdown is supported
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