libinput: support <dragLock>sticky<dragLock> and enable it by default

It is recommended by libinput:
https://lists.freedesktop.org/archives/wayland-devel/2024-November/043860.html
This commit is contained in:
tokyo4j 2025-06-07 19:27:05 +09:00 committed by Johan Malm
parent cc84cee75b
commit 22d319cce8
5 changed files with 26 additions and 6 deletions

View file

@ -110,6 +110,10 @@ conf_data.set10('HAVE_RSVG', have_rsvg)
conf_data.set10('HAVE_LIBSFDO', have_libsfdo)
foreach sym : ['LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY']
conf_data.set10('HAVE_' + sym, cc.has_header_symbol('libinput.h', sym, dependencies: input))
endforeach
if get_option('static_analyzer').enabled()
add_project_arguments(['-fanalyzer'], language: 'c')
endif