Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.2
-
None
-
-
45ec1362f (dev)
Description
If a cursor is created as a bitmap cursor, this line gets an invalid/empty pixmap.
Result is that no cursor is shown on screen under Wayland when a bitmap cursor is used. The size of the cursor is (0, 0) and Wayland complains that Qt attempts to mmap 0 bytes of memory for the cursor.
I tried converting bitmap to pixmap before creating cursor, but this result in an invalid format. Perhaps wayland doesn't support 1-bit cursors?
A workaround was to convert bitmap -> image -> pixmap and then set the mask using QPixmap::setMask(bitmap).