gnome-control-center/panels/common/gnome-settings-bus.h
Georges Basile Stavracas Neto 62f07b2c6d common: Don't unconditionally define HAVE_WAYLAND
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
2018-01-17 20:09:38 -02:00

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 */