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

get_window_id () function not exposed. #76934

Closed
ghost opened this issue May 11, 2023 · 2 comments · Fixed by #77288
Closed

get_window_id () function not exposed. #76934

ghost opened this issue May 11, 2023 · 2 comments · Fixed by #77288

Comments

@ghost
Copy link

ghost commented May 11, 2023

Godot version

v4.0.2.stable.official [7a0977c]

System information

Windows 11, AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 2.10 GHz

Issue description

The get_window_id () function in the Window class is not exposed and yet nearly every function in DisplayServer pertaining to window management requires a window ID as an argument, however, there's no way to retrieve this information from a window?!?!?

Steps to reproduce

N/A

Minimal reproduction project

N/A

@gotnospirit
Copy link
Contributor

@ghost
Copy link
Author

ghost commented May 11, 2023

get_window_list () just returns a bunch of IDs with no way of actually matching them up with a window except via get_window_at_screen_position (), however, that function should not be the default way of getting a window ID, I agree the function should exist for an alternate way.

get_window_id () is a method in the Window class in the Godot source, it's just not exposed.

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

Successfully merging a pull request may close this issue.

3 participants