diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2017-09-27 16:09:03 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2017-10-02 08:12:31 +0000 |
commit | 9a6bf3112168636295cd98fca9137ce03b387eaf (patch) | |
tree | 306d5c3961e460ff8aabf864ee685a6d52711e73 /src/compositor/compositor_api/qwaylandsurface.cpp | |
parent | 1d6a50071953288e0d008af7773d9207c9f9404a (diff) |
Compositor: Add missing cursorSurfaceChanged signal
Change-Id: I23a67b8189ab84e6a70c9e3de5da15cf2e9a9d77
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.cpp')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.cpp b/src/compositor/compositor_api/qwaylandsurface.cpp index 6a6d65206..6f277dd96 100644 --- a/src/compositor/compositor_api/qwaylandsurface.cpp +++ b/src/compositor/compositor_api/qwaylandsurface.cpp @@ -666,7 +666,11 @@ bool QWaylandSurface::isDestroyed() const void QWaylandSurface::markAsCursorSurface(bool cursorSurface) { Q_D(QWaylandSurface); + if (d->isCursorSurface == cursorSurface) + return; + d->isCursorSurface = cursorSurface; + emit cursorSurfaceChanged(); } bool QWaylandSurface::isCursorSurface() const |