summaryrefslogtreecommitdiff
path: root/src/client/qwaylandwindow_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-12-20 09:31:04 +0100
committerJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-12-30 12:33:29 +0100
commit957c0f52de83a0efe75b0ab33d1645799b892725 (patch)
treebff0e3d7e0c0fec62ee8037beafd92e5fd5d0821 /src/client/qwaylandwindow_p.h
parent4b2376e850d5030f73fd9e8e03ebf07922e1361b (diff)
downloadqtwayland-957c0f52de83a0efe75b0ab33d1645799b892725.tar.gz
Client: Add QWaylandWindow::mapFromWlSurface
Qt window coordinates start inside the decorations, while wl_surface coordinates start at the first pixel of the buffer. Potentially, that would be in the shadow, although we don't have those. So for now, it's the first pixel of the decorations. Change-Id: Idccf8a359035f5477d6bc9e2e03a0e9fafe16971 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Diffstat (limited to 'src/client/qwaylandwindow_p.h')
-rw-r--r--src/client/qwaylandwindow_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandwindow_p.h b/src/client/qwaylandwindow_p.h
index 36cbee89..35fa1fdf 100644
--- a/src/client/qwaylandwindow_p.h
+++ b/src/client/qwaylandwindow_p.h
@@ -129,6 +129,7 @@ public:
QMargins frameMargins() const override;
QSize surfaceSize() const;
QRect windowContentGeometry() const;
+ QPointF mapFromWlSurface(const QPointF &surfacePosition) const;
QWaylandSurface *waylandSurface() const { return mSurface.data(); }
::wl_surface *wlSurface();