mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-25 17:40:21 -04:00
Add missing parenthesis
This is to make the compiler happier.
This commit is contained in:
parent
11a811061f
commit
efd32eed53
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user