Client: Fix bradient compilation error without xpm

Change-Id: I8cbe939352713f643474d383da95b6d13be798a8
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Johan Klokkhammer Helsing 2018-06-16 21:15:17 +02:00 committed by Johan Helsing
parent 8a14be4437
commit 14beea787a

View File

@ -305,7 +305,7 @@ void QWaylandBradientDecoration::paint(QPaintDevice *device)
p.save();
p.drawRect(maximizeButtonRect());
rect = maximizeButtonRect().adjusted(5, 5, -5, -5);
if (waylandWindow()->isMaximized()) {
if ((window()->windowStates() & Qt::WindowMaximized)) {
QRectF rect1 = rect.adjusted(rect.width() / 3, 0, 0, -rect.height() / 3);
QRectF rect2 = rect.adjusted(0, rect.height() / 4, -rect.width() / 4, 0);
p.drawRect(rect1);