You've already forked godot
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user