From 076fdebebd2ce357c9a32f912e1c8bc07eaac7e7 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 6 Apr 2023 15:06:48 +0300 Subject: [PATCH] Revert "scene: Avoid creating SurfaceItem for Xwayland's cursor surfaces" This reverts commit b549776b68d8ca926ae99a1104c48804294e310d. --- src/scene/cursoritem.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/scene/cursoritem.cpp b/src/scene/cursoritem.cpp index 7cb7adc708..94fa958698 100644 --- a/src/scene/cursoritem.cpp +++ b/src/scene/cursoritem.cpp @@ -11,8 +11,6 @@ #include "scene/itemrenderer.h" #include "scene/scene.h" #include "scene/surfaceitem_wayland.h" -#include "wayland/surface_interface.h" -#include "wayland_server.h" namespace KWin { @@ -32,12 +30,7 @@ void CursorItem::refresh() { const CursorSource *source = Cursors::self()->currentCursor()->source(); if (auto surfaceSource = qobject_cast(source)) { - // TODO Plasma 6: Stop setting XCURSOR_SIZE and scale Xcursor.size in xrdb. - if (surfaceSource->surface() && surfaceSource->surface()->client() == waylandServer()->xWaylandConnection()) { - setImage(surfaceSource->image()); - } else { - setSurface(surfaceSource->surface()); - } + setSurface(surfaceSource->surface()); } else if (auto imageSource = qobject_cast(source)) { setImage(imageSource->image()); } else if (auto shapeSource = qobject_cast(source)) {