Glfw: GLFW_CURSOR_DISABLED - Mouse click registered outside the window

Created on 19 Oct 2015  Â·  3Comments  Â·  Source: glfw/glfw

When creating a windowed (not full screen) ogl context on mac osX, with the cursor mode as GLFW_CURSOR_DISABLED, the cursor stays exactly where it was right before opening the windows, so if the windows doesn't overlay the cursor position, the cursor is still visible.

When moving the event are sent to the glfw windows, but when I click the click is actually registered outside the glfw window (ie the window lost focus).

Would it be possible that when setting the cursor to GLFW_CURSOR_DISABLED mode, itmoves to the center of the windows automatically to avoid this kind of issue ?

bug macOS verified

Most helpful comment

Note to self: Another cursorWindow race. Death to all caches.

All 3 comments

What version of GLFW are you using?

The version: 3.1.2

On Mon, 19 Oct 2015 at 12:15 Camilla Berglund [email protected]
wrote:

What version of GLFW are you using?

—
Reply to this email directly or view it on GitHub
https://github.com/glfw/glfw/issues/617#issuecomment-149187408.

Note to self: Another cursorWindow race. Death to all caches.

Was this page helpful?
0 / 5 - 0 ratings