Does MouseCursor (const Image &image, int hotSpotX, int hotSpotY) work on Linux?


#1

Does MouseCursor (const Image &image, int hotSpotX, int hotSpotY) work on Linux? I can’t get it to work, the cursor doesn’t change. Stays with the previous cursor.


#2

It should do… certainly if you look in the code, the linux stuff uses custom mouse cursors internally so I guess it must at least have worked on some systems for us to have done that!


#3

I found the issue. I was creating my mouse cursors in a singleton that gets initialized early on. This works on Windows and Mac, but not Linux. Now I don’t create my mouse cursors until I need them for the first time and then cache them. This solves the issue.