diff --git a/src/cursordelegate_opengl.cpp b/src/cursordelegate_opengl.cpp index 392ce6df2d..e4ba065da8 100644 --- a/src/cursordelegate_opengl.cpp +++ b/src/cursordelegate_opengl.cpp @@ -13,6 +13,8 @@ #include "kwinglutils.h" #include "scene/cursorscene.h" +#include + namespace KWin { @@ -48,7 +50,7 @@ void CursorDelegateOpenGL::paint(RenderTarget *renderTarget, const QRegion ®i QMatrix4x4 mvp; mvp.ortho(QRect(QPoint(0, 0), renderTarget->size())); - mvp.translate(cursorRect.x() * scale, cursorRect.y() * scale); + mvp.translate(std::round(cursorRect.x() * scale), std::round(cursorRect.y() * scale)); GLFramebuffer *fbo = std::get(renderTarget->nativeHandle()); GLFramebuffer::pushFramebuffer(fbo);