meson.build: always set HAVE_GTK_WAYLAND
authorJosé Expósito <jose.exposito89@gmail.com>
Sun, 9 Oct 2022 18:07:59 +0000 (20:07 +0200)
committerJosé Expósito <jose.exposito89@gmail.com>
Sun, 9 Oct 2022 18:07:59 +0000 (20:07 +0200)
commite9a1999a7f84521ce91cdb19d9ed8a8adea0b0a9
treea8a62021135f62df524cd4e20a9673dce1f2504c
parent640208531c5bd1765201ce65d2a83ae082e0271d
meson.build: always set HAVE_GTK_WAYLAND

In commit 6a1bd5b0c9be ("meson.build: check gtk targets before
building") introduced a custom config option to check whether Wayland
is supported by GTK or not.

However, in some cases the config option is not set generating this
warning:

    ../tools/libinput-debug-gui.c:51:5: warning: "HAVE_GTK_WAYLAND" is
    not defined, evaluates to 0 [-Wundef]
       51 | #if HAVE_GTK_WAYLAND
          |     ^~~~~~~~~~~~~~~~

Make sure to always set HAVE_GTK_WAYLAND.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
meson.build