summaryrefslogtreecommitdiffstats
path: root/examples/wayland/qwindow-compositor/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/qwindow-compositor/window.cpp')
-rw-r--r--examples/wayland/qwindow-compositor/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wayland/qwindow-compositor/window.cpp b/examples/wayland/qwindow-compositor/window.cpp
index b73c7be39..617d79c0e 100644
--- a/examples/wayland/qwindow-compositor/window.cpp
+++ b/examples/wayland/qwindow-compositor/window.cpp
@@ -88,11 +88,11 @@ void Window::drawBackground()
QPointF Window::getAnchorPosition(const QPointF &position, int resizeEdge, const QSize &windowSize)
{
float y = position.y();
- if (resizeEdge & QWaylandXdgSurface::ResizeEdge::TopEdge)
+ if (resizeEdge & QWaylandXdgSurfaceV5::ResizeEdge::TopEdge)
y += windowSize.height();
float x = position.x();
- if (resizeEdge & QWaylandXdgSurface::ResizeEdge::LeftEdge)
+ if (resizeEdge & QWaylandXdgSurfaceV5::ResizeEdge::LeftEdge)
x += windowSize.width();
return QPointF(x, y);