SFML community forums

Help => Window => Topic started by: moonfirefly on September 09, 2014, 05:06:45 am

Title: Window setMouseCursorVisible set to false not effective upon start (osx)
Post by: moonfirefly on September 09, 2014, 05:06:45 am
I use setMouseCursorVisible to hide to mouse cursor when it enters the SFML window. When set to false, the cursor is still visible when it hovers over the running window until it loses focus and gets it back. Only then the cursor remains hidden over the window.

Here's a small program showing this behavior on osx:
(click to show/hide)

I use the latest SFML github source.

Simply moving the mouse cursor over the dock then back over the window kicks in the cursor hide. Command+tab does the same as well.

The same issue can be observed in fullscreen video modes.
Title: Re: Window setMouseCursorVisible set to false not effective upon start (osx)
Post by: eXpl0it3r on September 13, 2014, 11:07:36 pm
What OS are you on?

To me this sounds like this issue (https://github.com/SFML/SFML/issues/668).
Title: Re: Window setMouseCursorVisible set to false not effective upon start (osx)
Post by: Hiura on September 14, 2014, 03:33:56 pm
@moonfirefly thanks for the report. Indeed there was something wrong on OS X regarding that matter. It should now be fixed in the branch bugfix/osx_cursor_hide.

Could you give it a run? You can find it here: https://github.com/SFML/SFML/tree/bugfix/osx_hide_cursor
Thanks.

@eXpl0it3r in the title it says OS X.  :P
Title: Re: Window setMouseCursorVisible set to false not effective upon start (osx)
Post by: moonfirefly on September 25, 2014, 12:38:07 am
Success! :) I confirm that the "bugfix/osx_cursor_hide" build fixes the cursor problem! 

After a few days outstanding I had lost hope on this one and deserted the forums a while, I'm glad it got sorted out in the end ;) thanks a lot