We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6d130a commit 98537b2Copy full SHA for 98537b2
platform/linuxbsd/wayland/display_server_wayland.cpp
@@ -1049,7 +1049,7 @@ void DisplayServerWayland::window_set_drop_files_callback(const Callable &p_call
1049
}
1050
1051
int DisplayServerWayland::window_get_current_screen(DisplayServer::WindowID p_window_id) const {
1052
- ERR_FAIL_COND_V(p_window_id != MAIN_WINDOW_ID, INVALID_SCREEN);
+ ERR_FAIL_COND_V(!windows.has(p_window_id), INVALID_SCREEN);
1053
// Standard Wayland APIs don't support getting the screen of a window.
1054
return 0;
1055
0 commit comments