Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLFW_CURSOR_DISABLED - Mouse click registered outside the window #617

Closed
opengl-tutorial opened this issue Oct 19, 2015 · 3 comments
Closed
Assignees
Labels
bug Bug reports and bugfix pull requests macOS verified Reproduced or otherwise verified bugs
Milestone

Comments

@opengl-tutorial
Copy link

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 ?

@elmindreda elmindreda self-assigned this Oct 19, 2015
@elmindreda elmindreda changed the title Mac OSX - GLFW_CURSOR_DISABLED - Mouse click registered outside the window GLFW_CURSOR_DISABLED - Mouse click registered outside the window Oct 19, 2015
@elmindreda
Copy link
Member

What version of GLFW are you using?

@opengl-tutorial
Copy link
Author

The version: 3.1.2

On Mon, 19 Oct 2015 at 12:15 Camilla Berglund notifications@github.com
wrote:

What version of GLFW are you using?


Reply to this email directly or view it on GitHub
#617 (comment).

@elmindreda elmindreda added bug Bug reports and bugfix pull requests verified Reproduced or otherwise verified bugs labels Oct 19, 2015
@elmindreda elmindreda added this to the 3.2 milestone Oct 19, 2015
@elmindreda
Copy link
Member

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

elmindreda added a commit that referenced this issue May 25, 2016
Due to Wayland, shared code cannot rely on cursor positioning being
supported by the underlying platform.

This implicitly fixes #617 as it moves cursor centering into
_glfwPlatformSetCursorMode.

Fixes #617.
elmindreda added a commit that referenced this issue May 25, 2016
Due to Wayland, shared code cannot rely on cursor positioning being
supported by the underlying platform.

This implicitly fixes #617 as it moves cursor centering into
_glfwPlatformSetCursorMode.

Fixes #617.
elmindreda added a commit that referenced this issue May 26, 2016
Due to Wayland, shared code cannot rely on cursor positioning being
supported by the underlying platform.

This implicitly fixes #617 as it moves cursor centering into
_glfwPlatformSetCursorMode.

Fixes #617.
elmindreda added a commit that referenced this issue May 27, 2016
Due to Wayland, shared code cannot rely on cursor positioning being
supported by the underlying platform.

This implicitly fixes #617 as it moves cursor centering into
_glfwPlatformSetCursorMode, thus separating it from the stale value of
_glfw.cursorWindow.

Fixes #617.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports and bugfix pull requests macOS verified Reproduced or otherwise verified bugs
Projects
None yet
Development

No branches or pull requests

2 participants