From efd32eed53147d73f5a48fdf02eca700a1c480f3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 20 Apr 2021 18:38:24 +0300 Subject: [PATCH] Add missing parenthesis This is to make the compiler happier. --- src/qwaylandlayersurface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index c4270b1..e45db1e 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -32,10 +32,10 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShell *shell, QtWaylandC setExclusiveZone(interface->exclusionZone()); QSize size = window->surfaceSize(); - if (anchors & Window::AnchorLeft && anchors & Window::AnchorRight) { + if ((anchors & Window::AnchorLeft) && (anchors & Window::AnchorRight)) { size.setWidth(0); } - if (anchors & Window::AnchorTop && anchors & Window::AnchorBottom) { + if ((anchors & Window::AnchorTop) && (anchors & Window::AnchorBottom)) { size.setHeight(0); } if (size.isValid() && size != QSize(0, 0)) {