mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
meson.build: always set HAVE_GTK_WAYLAND
In commit 6a1bd5b0c9 ("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>
This commit is contained in:
parent
640208531c
commit
e9a1999a7f
1 changed files with 1 additions and 0 deletions
|
|
@ -551,6 +551,7 @@ if get_option('debug-gui')
|
|||
dep_wayland_protocols = dependency('wayland-protocols', required : false)
|
||||
|
||||
config_h.set10('HAVE_GTK_X11', have_gtk_x11 and dep_x11.found())
|
||||
config_h.set10('HAVE_GTK_WAYLAND', false)
|
||||
|
||||
debug_gui_sources = [ 'tools/libinput-debug-gui.c' ]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue