OSDN Git Service

use the stored pixmap mask in QCursor::handle()
authorIvailo Monev <xakepa10@gmail.com>
Mon, 14 Nov 2022 00:41:39 +0000 (02:41 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 14 Nov 2022 00:41:39 +0000 (02:41 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/kernel/qcursor_x11.cpp

index 01f2ad6..84f977a 100644 (file)
@@ -158,7 +158,7 @@ Qt::HANDLE QCursor::handle() const
 #endif
             if (!d->px.isNull()) {
                 d->x11px = d->px.toX11Pixmap();
-                d->x11bm = d->px.mask().toX11Pixmap();
+                d->x11bm = d->bm.toX11Pixmap();
                 d->hcurs = XCreatePixmapCursor(dpy, d->x11px, d->x11bm, &d->fg, &d->bg, d->hx, d->hy);
             }
             return d->hcurs;