summaryrefslogtreecommitdiff
path: root/src/protocols/XWaylandShell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/XWaylandShell.cpp')
-rw-r--r--src/protocols/XWaylandShell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/XWaylandShell.cpp b/src/protocols/XWaylandShell.cpp
index 9bb75a3e..62c1e208 100644
--- a/src/protocols/XWaylandShell.cpp
+++ b/src/protocols/XWaylandShell.cpp
@@ -18,7 +18,7 @@ CXWaylandSurfaceResource::CXWaylandSurfaceResource(SP<CXwaylandSurfaceV1> resour
m_client = m_resource->client();
m_resource->setSetSerial([this](CXwaylandSurfaceV1* r, uint32_t lo, uint32_t hi) {
- m_serial = (((uint64_t)hi) << 32) + lo;
+ m_serial = (sc<uint64_t>(hi) << 32) + lo;
PROTO::xwaylandShell->m_events.newSurface.emit(m_self.lock());
});
}