This header unconditionally defines HAVE_WAYLAND when GTK is built with Wayland support. This breaks the build when building with Wayland disabled. https://bugzilla.gnome.org/show_bug.cgi?id=785414
14 lines
287 B
C
14 lines
287 B
C
/* Stub to replace gnome-settings-daemon's
|
|
* gnome-settings-bus.h helpers */
|
|
|
|
#include <gdk/gdkx.h>
|
|
|
|
#ifdef GDK_WINDOWING_WAYLAND
|
|
|
|
static inline gboolean
|
|
gnome_settings_is_wayland (void)
|
|
{
|
|
return !GDK_IS_X11_DISPLAY (gdk_display_get_default ());
|
|
}
|
|
|
|
#endif /* GDK_WINDOWING_WAYLAND */
|