Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window setMouseCursorVisible set to false not effective upon start (osx)  (Read 3178 times)

0 Members and 1 Guest are viewing this topic.

moonfirefly

  • Newbie
  • *
  • Posts: 28
    • View Profile
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.
Blokade: Source

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11008
    • View Profile
    • development blog
    • Email
Re: Window setMouseCursorVisible set to false not effective upon start (osx)
« Reply #1 on: September 13, 2014, 11:07:36 pm »
What OS are you on?

To me this sounds like this issue.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Window setMouseCursorVisible set to false not effective upon start (osx)
« Reply #2 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
SFML / OS X developer

moonfirefly

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Window setMouseCursorVisible set to false not effective upon start (osx)
« Reply #3 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
Blokade: Source

 

anything