mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Do not call accessibility_set_window_rect
on Wayland, fix main windows accessibility context creation.
This commit is contained in:
parent
19bb18716e
commit
5441a82cfb
2 changed files with 11 additions and 1 deletions
|
@ -2074,6 +2074,16 @@ DisplayServerWayland::DisplayServerWayland(const String &p_rendering_driver, Win
|
|||
wd.rect.size = p_resolution;
|
||||
wd.title = "Godot";
|
||||
|
||||
#ifdef ACCESSKIT_ENABLED
|
||||
if (accessibility_driver && !accessibility_driver->window_create(wd.id, nullptr)) {
|
||||
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||
ERR_PRINT("Can't create an accessibility adapter for window, accessibility support disabled!");
|
||||
}
|
||||
memdelete(accessibility_driver);
|
||||
accessibility_driver = nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
show_window(MAIN_WINDOW_ID);
|
||||
|
||||
#ifdef RD_ENABLED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue