Add missing parenthesis

This is to make the compiler happier.
This commit is contained in:
Vlad Zahorodnii 2021-04-20 18:38:24 +03:00
parent 11a811061f
commit efd32eed53

View file

@ -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)) {