diff --git a/src/compositor_wayland.cpp b/src/compositor_wayland.cpp index 0afd564bdd..f63ead7796 100644 --- a/src/compositor_wayland.cpp +++ b/src/compositor_wayland.cpp @@ -257,9 +257,9 @@ void WaylandCompositor::addOutput(Output *output) } auto workspaceLayer = new RenderLayer(output->renderLoop()); workspaceLayer->setDelegate(std::make_unique(m_scene.get(), output)); - workspaceLayer->setGeometry(output->rect()); + workspaceLayer->setGeometry(output->rectF()); connect(output, &Output::geometryChanged, workspaceLayer, [output, workspaceLayer]() { - workspaceLayer->setGeometry(output->rect()); + workspaceLayer->setGeometry(output->rectF()); }); auto cursorLayer = new RenderLayer(output->renderLoop()); diff --git a/src/scene/cursordelegate_opengl.cpp b/src/scene/cursordelegate_opengl.cpp index 23622feb22..8fa12cf8f5 100644 --- a/src/scene/cursordelegate_opengl.cpp +++ b/src/scene/cursordelegate_opengl.cpp @@ -67,7 +67,7 @@ void CursorDelegateOpenGL::paint(const RenderTarget &renderTarget, const QRegion GLFramebuffer::pushFramebuffer(fbo); const bool clipping = region != infiniteRegion(); - const QRegion clipRegion = clipping ? RenderViewport(m_output->fractionalGeometry(), m_output->scale(), renderTarget).mapToRenderTarget(dirty) : infiniteRegion(); + const QRegion clipRegion = clipping ? RenderViewport(m_output->rectF(), m_output->scale(), renderTarget).mapToRenderTarget(dirty) : infiniteRegion(); if (clipping) { glEnable(GL_SCISSOR_TEST);