godotengine / godotengine/godot
Running TPS Demo on MacOS emits DisplayServer warning
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
Tested versions
- Reproducible in: 4.3dev5 and 4.3 master (25-April-2024)
System information
Vulkan 1.2.280 - Forward+ - Using Device #0: Apple - Apple M1
Issue description
I am running the TPS demo in windowed mode. I am getting the following message repeatedly in the console:
WARNING: Entering a window while a window is hovered should never happen in DisplayServer.
at: _event_callback (scene/main/window.cpp:712)
It seems there is a wrong assumption in there, since it obviously does happen?
Steps to reproduce
Run TPS demo in windowed mode. Switch between the game window and the macOS desktop.
Minimal reproduction project (MRP)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with scene/main/window.cpp at _event_callback around line 712 and reproduce the warning by running the TPS demo in windowed mode, then switching between the game window and the macOS desktop. Trace the DisplayServer window-enter handling and verify that the repeated warning no longer appears during this transition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100