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

Popup menus and tooltips are not working when no displays connected #85886

Closed
andreymal opened this issue Dec 7, 2023 · 0 comments · Fixed by #91933
Closed

Popup menus and tooltips are not working when no displays connected #85886

andreymal opened this issue Dec 7, 2023 · 0 comments · Fixed by #91933

Comments

@andreymal
Copy link

Tested versions

4.2.stable

System information

Linux, X11

Issue description

I'm connecting to my PC remotely via VNC, and since the physical display is off, the system thinks there are no displays connected. Godot complains about it:

platform/linuxbsd/x11/display_server_x11.cpp:1062 - Invalid screen index: 0(count: 0).
platform/linuxbsd/x11/display_server_x11.cpp:1133 - Index p_screen = 0 is out of bounds (screen_count = 0).

Most functions work fine, however I have noticed that pop-up menus and tooltips don't work. I suspect that the menus are 0x0 pixels in size and therefore not visible.

However, the X11 screen still exists even without display, and I think Godot should work with it correctly.

Steps to reproduce

Unplug the display cable, I guess?

Minimal reproduction project (MRP)

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants