Skip to content

Conversation

@GamesTrap
Copy link
Contributor

@GamesTrap
Copy link
Contributor Author

GamesTrap commented Jun 26, 2025

Seems like MSVC is unhappy about deps/nuklear.h :(

D:\a\glfw\glfw\deps\nuklear.h(3433,37): error C2220: the following warning is treated as an error [D:\a\glfw\glfw\build-win32-shared-x86\tests\inputlag.vcxproj]

(compiling source file '../../tests/inputlag.c')

Upstream issue: Immediate-Mode-UI/Nuklear#751

@dougbinks dougbinks self-requested a review June 28, 2025 11:01
@dougbinks dougbinks self-assigned this Jun 28, 2025
@dougbinks dougbinks added bug Bug reports and bugfix pull requests Wayland input Keyboard, joystick or mouse labels Jun 28, 2025
@dougbinks
Copy link
Contributor

dougbinks commented Jul 5, 2025

Thanks for this.

You asked about whether event = GLFW_TRUE; should be set outside the test for _glfw.wl.keyboardFocus, I believe not though the behaviour of event waiting is not currently consistent across platforms.

Checklist for bug fixes:

  • Change log entry in README.md, describing the incorrect behavior DONE
  • Credits entries in CONTRIBUTORS.md for all authors of the bug fix DONE, you are in the credits already as Jan Schuerkamp but we can change it to Jan Schürkamp if you like since it's UTF-8 encoded.

I'll make a local fix for nuklear.h and then merge this PR. If you want your name changed to include the accent let me know (if it's after the merge I can make the change in a separate commit).

@GamesTrap
Copy link
Contributor Author

If you want your name changed to include the accent let me know (if it's after the merge I can make the change in a separate commit).

I've changed it now :)

@dougbinks dougbinks merged commit 506c11b into glfw:master Jul 5, 2025
3 of 4 checks passed
@dougbinks
Copy link
Contributor

Merged, many thanks for the PR!

@elmindreda elmindreda added this to the 3.4.1 milestone Jul 7, 2025
dougbinks added a commit to dougbinks/glfw that referenced this pull request Jul 16, 2025
Windows with keyboard focus may have an active key repeat timer.
This should be reset when the window is closed, or key repeat events
could be sent to a NULL window were it not for the quickfix in PR glfw#2732.

Fixes glfw#2741
Probably the source of glfw#2727
dougbinks added a commit that referenced this pull request Jul 17, 2025
Windows with keyboard focus may have an active key repeat timer.
This should be reset when the window is closed, or key repeat events
could be sent to a NULL window were it not for the quickfix in PR #2732.

Fixes #2741
Probably the source of #2727
0x484558 pushed a commit to 0x484558/glfw-mc that referenced this pull request Dec 7, 2025
…lfw#2732)

* Wayland: Ignore key repeat events when no window has keyboard focus
0x484558 pushed a commit to 0x484558/glfw-mc that referenced this pull request Dec 7, 2025
Windows with keyboard focus may have an active key repeat timer.
This should be reset when the window is closed, or key repeat events
could be sent to a NULL window were it not for the quickfix in PR glfw#2732.

Fixes glfw#2741
Probably the source of glfw#2727
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 input Keyboard, joystick or mouse Wayland

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants