--- ./gtk/a11y/gtkaccessibility.c.orig 2024-07-10 12:03:14.000000000 -0500 +++ ./gtk/a11y/gtkaccessibility.c 2025-09-17 23:00:40.371168840 -0500 @@ -39,6 +39,8 @@ #ifdef GDK_WINDOWING_X11 +#ifdef HAVE_ATK_BRIDGE #include #endif +#endif static gboolean gail_focus_watcher (GSignalInvocationHint *ihint, @@ -988,6 +990,8 @@ #ifdef GDK_WINDOWING_X11 +#ifdef HAVE_ATK_BRIDGE atk_bridge_adaptor_init (NULL, NULL); #endif +#endif atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL); --- ./meson.build.orig 2024-07-10 12:03:14.000000000 -0500 +++ ./meson.build 2025-09-17 23:00:40.372168840 -0500 @@ -566,5 +566,10 @@ xcomposite_dep = dependency('xcomposite', required: false) fontconfig_dep = dependency('fontconfig', fallback: ['fontconfig', 'fontconfig_dep']) - atkbridge_dep = dependency('atk-bridge-2.0', version: at_spi2_atk_req) + + atk_bridge_enabled = get_option('atk_bridge') + if atk_bridge_enabled + atkbridge_dep = dependency('atk-bridge-2.0', version: at_spi2_atk_req) + cdata.set('HAVE_ATK_BRIDGE', 1) + endif backend_immodules += ['xim'] @@ -585,5 +590,7 @@ endif - atk_pkgs += ['atk-bridge-2.0'] + if atk_bridge_enabled + atk_pkgs += ['atk-bridge-2.0'] + endif cdata.set('HAVE_XDAMAGE', xdamage_dep.found() ? 1 : false) --- ./meson_options.txt.orig 2024-07-10 12:03:14.000000000 -0500 +++ ./meson_options.txt 2025-09-17 23:00:40.372168840 -0500 @@ -48,2 +48,6 @@ option('builtin_immodules', type: 'string', value: '', description: 'Build specified immodules into GTK so/DLL (comma-separated list), "all", "none" or "backend"') + +# Recommended dependencies +option('atk_bridge', type: 'boolean', value: true, + description : 'Enable atk-bridge support')