Browse Source

fix:Compile error in wayland display server when compiling linuxbsd platform after disabling dbus

tthhr 4 months ago
parent
commit
e7a3729175
1 changed files with 3 additions and 0 deletions
  1. 3 0
      platform/linuxbsd/wayland/display_server_wayland.cpp

+ 3 - 0
platform/linuxbsd/wayland/display_server_wayland.cpp

@@ -1541,7 +1541,10 @@ bool DisplayServerWayland::color_picker(const Callable &p_callback) {
 	// 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
+	return false;
 }
 
 void DisplayServerWayland::try_suspend() {