diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index c4fcc942a..643a51726 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -38,7 +38,9 @@ #include #include #include +#ifdef GDK_WINDOWING_WAYLAND #include +#endif #include #include #include @@ -253,6 +255,7 @@ gboolean eel_check_is_wayland (void) { static gboolean using_wayland = FALSE; +#ifdef GDK_WINDOWING_WAYLAND static gsize once_init = 0; if (g_once_init_enter (&once_init)) { @@ -260,7 +263,7 @@ eel_check_is_wayland (void) g_once_init_leave (&once_init, 1); } - +#endif return using_wayland; } diff --git a/meson.build b/meson.build index daa6c9cbe..3f09fe844 100644 --- a/meson.build +++ b/meson.build @@ -72,7 +72,6 @@ glib_version = '>=2.45.7' math = cc.find_library('m', required: true) gtk = dependency('gtk+-3.0', version: '>=3.10.0') -gtk_wl = dependency('gtk+-wayland-3.0', version: '>=3.10.0') gio = dependency('gio-2.0', version: glib_version) gio_unix= dependency('gio-unix-2.0', version: glib_version) glib = dependency('glib-2.0', version: glib_version) @@ -203,6 +202,7 @@ message('\n'.join(['', ' libexif support: @0@'.format(libexif_enabled), ' exempi support: @0@'.format(exempi_enabled), ' Tracker support: @0@'.format(tracker_enabled), +' Wayland support: @0@'.format(cc.has_header('gdk/gdkwayland.h', dependencies: gtk)), '', ' nemo-extension documentation: @0@'.format(gtkdoc_enabled), ' nemo-extension introspection: @0@'.format(true),