Merge pull request #105935 from TTHHR/fixdbus
Wayland: Fix compile error with DBUS disabled
This commit is contained in:
commit
d7615dc75f
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue