diff options
Diffstat (limited to 'src/protocols/LayerShell.cpp')
| -rw-r--r-- | src/protocols/LayerShell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/LayerShell.cpp b/src/protocols/LayerShell.cpp index be9e3370..2ed4bfb1 100644 --- a/src/protocols/LayerShell.cpp +++ b/src/protocols/LayerShell.cpp @@ -11,7 +11,7 @@ void CLayerShellResource::SState::reset() { exclusive = 0; interactivity = ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_NONE; layer = ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM; - exclusiveEdge = (zwlrLayerSurfaceV1Anchor)0; + exclusiveEdge = sc<zwlrLayerSurfaceV1Anchor>(0); desiredSize = {}; margin = {0, 0, 0, 0}; } @@ -84,7 +84,7 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C m_resource->setSetSize([this](CZwlrLayerSurfaceV1* r, uint32_t x, uint32_t y) { m_pending.committed |= STATE_SIZE; - m_pending.desiredSize = {(int)x, (int)y}; + m_pending.desiredSize = {sc<int>(x), sc<int>(y)}; }); m_resource->setSetAnchor([this](CZwlrLayerSurfaceV1* r, zwlrLayerSurfaceV1Anchor anchor) { @@ -150,7 +150,7 @@ CLayerShellResource::CLayerShellResource(SP<CZwlrLayerSurfaceV1> resource_, SP<C } m_pending.committed |= STATE_LAYER; - m_pending.layer = (zwlrLayerShellV1Layer)layer; + m_pending.layer = sc<zwlrLayerShellV1Layer>(layer); }); m_resource->setSetExclusiveEdge([this](CZwlrLayerSurfaceV1* r, zwlrLayerSurfaceV1Anchor anchor) { |
