diff options
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandcursor.cpp | 3 | ||||
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandscreen.cpp | 5 | ||||
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandscreen.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandcursor.cpp b/src/plugins/platforms/wayland/qwaylandcursor.cpp index 7e094a8d3..e8e7ef1e7 100644 --- a/src/plugins/platforms/wayland/qwaylandcursor.cpp +++ b/src/plugins/platforms/wayland/qwaylandcursor.cpp @@ -103,8 +103,7 @@ static const struct pointer_image { }; QWaylandCursor::QWaylandCursor(QWaylandScreen *screen) - : QPlatformCursor(screen) - , mBuffer(0) + : mBuffer(0) , mDisplay(screen->display()) { } diff --git a/src/plugins/platforms/wayland/qwaylandscreen.cpp b/src/plugins/platforms/wayland/qwaylandscreen.cpp index b0bb5189e..e81d5bc0a 100644 --- a/src/plugins/platforms/wayland/qwaylandscreen.cpp +++ b/src/plugins/platforms/wayland/qwaylandscreen.cpp @@ -95,6 +95,11 @@ Qt::ScreenOrientation QWaylandScreen::orientation() const return QPlatformScreen::orientation(); } +QPlatformCursor *QWaylandScreen::cursor() const +{ + return mWaylandCursor; +} + QWaylandExtendedOutput *QWaylandScreen::extendedOutput() const { return mExtendedOutput; diff --git a/src/plugins/platforms/wayland/qwaylandscreen.h b/src/plugins/platforms/wayland/qwaylandscreen.h index fb99699d1..6e62174bc 100644 --- a/src/plugins/platforms/wayland/qwaylandscreen.h +++ b/src/plugins/platforms/wayland/qwaylandscreen.h @@ -62,6 +62,8 @@ public: Qt::ScreenOrientation orientation() const; + QPlatformCursor *cursor() const; + wl_output *output() const { return mOutput; } QWaylandExtendedOutput *extendedOutput() const; |