Skip to content

Commit d7615dc

Browse files
committed
Merge pull request #105935 from TTHHR/fixdbus
Wayland: Fix compile error with DBUS disabled
2 parents 8fd7311 + e7a3729 commit d7615dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform/linuxbsd/wayland/display_server_wayland.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,10 @@ bool DisplayServerWayland::color_picker(const Callable &p_callback) {
15411541
// TODO: Use window IDs for multiwindow support.
15421542

15431543
WaylandThread::WindowState *ws = wayland_thread.wl_surface_get_window_state(wayland_thread.window_get_wl_surface(window_id));
1544+
#ifdef DBUS_ENABLED
15441545
return portal_desktop->color_picker((ws ? ws->exported_handle : String()), p_callback);
1546+
#endif
1547+
return false;
15451548
}
15461549

15471550
void DisplayServerWayland::try_suspend() {

0 commit comments

Comments
 (0)