From 58826317fc10c0c81cea2b63f6d37002f8df2344 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 16 Aug 2024 17:58:30 +0200 Subject: [PATCH] Linux: Fix regression with mask of cursors if platform name is 'xcb' --- src/Gui/View3DInventorViewer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index af8ee9fc35..43c49d006f 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -661,14 +661,12 @@ static QCursor createCursor(QBitmap &bitmap, QBitmap &mask, int hotX, int hotY, QImage img = bitmap.toImage(); img.convertTo(QImage::Format_ARGB32); pixmap = QPixmap::fromImage(img); - } else { - pixmap = bitmap; + pixmap.setMask(mask); + return QCursor(pixmap, hotX, hotY); } - pixmap.setMask(mask); - return QCursor(pixmap, hotX, hotY); -#else - return QCursor(bitmap, mask, hotX, hotY); #endif + + return QCursor(bitmap, mask, hotX, hotY); } void View3DInventorViewer::createStandardCursors(double dpr)