1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Linux: Fix build with dbus=no or threads=no

This commit is contained in:
Rémi Verschelde
2025-05-08 16:56:13 +02:00
parent 8f78e7510d
commit e9e8ddc5be
3 changed files with 8 additions and 4 deletions

View File

@@ -1535,14 +1535,14 @@ Key DisplayServerWayland::keyboard_get_keycode_from_physical(Key p_keycode) cons
}
bool DisplayServerWayland::color_picker(const Callable &p_callback) {
#ifdef DBUS_ENABLED
WindowID window_id = MAIN_WINDOW_ID;
// TODO: Use window IDs for multiwindow support.
WaylandThread::WindowState *ws = wayland_thread.wl_surface_get_window_state(wayland_thread.window_get_wl_surface(window_id));
#ifdef DBUS_ENABLED
return portal_desktop->color_picker((ws ? ws->exported_handle : String()), p_callback);
#endif
#else
return false;
#endif
}
void DisplayServerWayland::try_suspend() {