godotengine / godotengine/godot

Running TPS Demo on MacOS emits DisplayServer warning

Open
#91,184 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug platform:macos topic:platforms
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)

https://github.com/godotengine/tps-demo

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.