diff --git a/src/platform.cpp b/src/platform.cpp index 264cd213a5..c9c31ab160 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -506,16 +506,6 @@ QSize Platform::screenSize() const return QSize(); } -QVector Platform::screenGeometries() const -{ - return QVector({QRect(QPoint(0, 0), screenSize())}); -} - -QVector Platform::screenScales() const -{ - return QVector({1}); -} - bool Platform::requiresCompositing() const { return true; diff --git a/src/platform.h b/src/platform.h index 89f0b92f55..43a6cfc135 100644 --- a/src/platform.h +++ b/src/platform.h @@ -152,21 +152,6 @@ public: * Base implementation returns an invalid size. */ virtual QSize screenSize() const; - /** - * Implementing subclasses should provide all geometries in case the backend represents - * a basic screen and uses the BasicScreens. - * - * Base implementation returns one QRect positioned at 0/0 with screenSize() as size. - */ - virtual QVector screenGeometries() const; - - /** - * Implementing subclasses should provide all geometries in case the backend represents - * a basic screen and uses the BasicScreens. - * - * Base implementation returns a screen with a scale of 1. - */ - virtual QVector screenScales() const; /** * Implement this method to receive configuration change requests through KWayland's * OutputManagement interface. diff --git a/src/plugins/platforms/x11/windowed/x11windowed_backend.cpp b/src/plugins/platforms/x11/windowed/x11windowed_backend.cpp index c907ad8c19..4ef0e31878 100644 --- a/src/plugins/platforms/x11/windowed/x11windowed_backend.cpp +++ b/src/plugins/platforms/x11/windowed/x11windowed_backend.cpp @@ -475,7 +475,7 @@ void X11WindowedBackend::createCursor(const QImage &srcImage, const QPoint &hots const xcb_cursor_t cid = xcb_generate_id(m_connection); //right now on X we only have one scale between all screens, and we know we will have at least one screen - const qreal outputScale = screenScales().first(); + const qreal outputScale = 1; const QSize targetSize = srcImage.size() * outputScale / srcImage.devicePixelRatio(); const QImage img = srcImage.scaled(targetSize, Qt::KeepAspectRatio);