Merge pull request #269 from kisslinux/wayland

Wayland
This commit is contained in:
dylan 2021-07-11 18:02:34 +03:00 committed by GitHub
commit 55be413aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
442 changed files with 3003 additions and 1024 deletions

View File

@ -0,0 +1 @@
0b6c436ed6ad9887a88ada1f72a0197b1eb73b020d8d344abab4c7fa7250f8f6

View File

@ -0,0 +1 @@
https://download.gnome.org/sources/adwaita-icon-theme/40/adwaita-icon-theme-40.1.1.tar.xz

View File

@ -0,0 +1 @@
40.1.1 1

View File

@ -15,12 +15,10 @@ mv -f _ Makefile.in
--prefix=/usr \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-xlib-xcb \
--enable-xcb \
--enable-xlib-xrender \
--enable-xlib \
--disable-xlib-xcb \
--disable-xcb \
--disable-xlib-xrender \
--disable-xlib \
--disable-trace \
--disable-valgrind \
--disable-gtk-doc-html

View File

@ -2,8 +2,6 @@ fontconfig
glib
libffi
libpng
libXext
libXrender
mesa
pixman
pkgconf make

View File

@ -7,6 +7,11 @@
--disable-debug \
--disable-libxml2 \
--disable-static \
--disable-libxcb \
--disable-libxcb-shm \
--disable-libxcb-xfixes \
--disable-libxcb-shape \
--disable-xlib \
--enable-gpl \
--enable-libass \
--enable-libdrm \

View File

@ -1,6 +1,7 @@
#!/bin/sh -e
patch -p1 < no-gtk2.patch
patch -p1 < no-x11.patch
# Remove fribidi dependency.
sed '/fribidi/d' config/system-headers.mozbuild > _
@ -51,6 +52,7 @@ export MOZ_DEBUG_FLAGS=-g0
export MOZ_NOSPAM=1
cat > .mozconfig << EOF
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --enable-alsa
@ -89,6 +91,13 @@ ac_add_options --disable-parental-controls
ac_add_options --disable-system-extension-dirs
EOF
# Currently required for X11-less builds.
# See: https://bugzilla.mozilla.org/show_bug.cgi?id=1661450
# https://bugzilla.mozilla.org/show_bug.cgi?id=1654112
cat >> .mozconfig <<EOF
ac_add_options --disable-webrtc
EOF
./mach build
DESTDIR="$1" ./mach install

View File

@ -2,3 +2,4 @@
f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e
3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f
f18d00475ab9d7c4e8bd2dfcda00dc7ff4a1f930e3ffcee420aeadf636469cef
e8d9d077e5bd2750643337167ff822d1476aad1838a23b066eb0fde11b66b7b1

View File

@ -11,29 +11,12 @@ freetype-harfbuzz
gdk-pixbuf
glib
gtk+3
libICE
libSM
libX11
libXau
libXcomposite
libXcursor
libXdamage
libXext
libXfixes
libXi
libXinerama
libXrandr
libXrender
libXt
libXxf86vm
libdrm
libepoxy
libffi
libjpeg-turbo
libpng
libvpx
libxcb
libxshmfence
llvm make
m4 make
mesa
@ -45,5 +28,6 @@ pixman
pkgconf make
python make
rust make
wayland
zip make
zlib

File diff suppressed because it is too large Load Diff

View File

@ -2,13 +2,11 @@
cat <<EOF
NOTE: Install the 'hicolor-icon-theme' package if
no other icon themes are installed.
Run 'kiss help firefox' for setup
information and general troubleshooting.
NOTE: Install the 'firefox-privacy' package to
enable extra privacy restrictions.
Also available here:
NOTE: This includes more telemetry removals,
hardened settings, no phoning-home etc.
https://kisslinux.xyz/wiki/software/firefox
EOF

View File

@ -2,3 +2,4 @@ https://ftp.mozilla.org/pub/firefox/releases/89.0.2/source/firefox-89.0.2.source
https://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz autoconf2.13/
https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz yasm/
patches/no-gtk2.patch
patches/no-x11.patch

View File

@ -1,2 +1,2 @@
86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
b3f17394c5bccee456172b2b30ddec0bb87e9c5df38b4559a973d14ccd04509d
4164f68103e7b52757a732227cfa2a16cfa9984da513843bb4eb7669adc6f220

View File

@ -1,17 +1,8 @@
bzip2
expat
glib
libX11
libXau
libXdamage
libXext
libXfixes
libXrender
libXxf86vm
libdrm
libpng
libxcb
libxshmfence
mesa
meson make
pixman

View File

@ -1,2 +1,2 @@
https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.xz freetype
https://github.com/harfbuzz/harfbuzz/archive/2.8.1.tar.gz harfbuzz
https://github.com/harfbuzz/harfbuzz/archive/2.8.2.tar.gz harfbuzz

View File

@ -1 +1 @@
2.10.4+2.8.1 1
2.10.4+2.8.2 1

View File

@ -1,5 +1,4 @@
glib
libX11
libjpeg-turbo
libpng
meson make

View File

@ -1,6 +1,27 @@
#!/bin/sh -e
patch -p1 < no-fribidi.patch
patch -p1 < schemas.patch
# GTK+3 on Wayland requires gsettings-desktop-schemas
# for gsettings to work correctly. Install the bare
# minimum needed (currently one schema).
#
# This fixes cursor icon issues and console spam when
# running Firefox.
(
cd schemas
meson \
--prefix=/usr \
-Dintrospection=false \
. output
export DESTDIR="$1"
ninja -C output
ninja -C output install
)
# Remove configure check for atk-bridge and fribidi.
sed -e 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' \
@ -22,13 +43,8 @@ mv -f _ Makefile.in
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-xkb \
--enable-xinerama \
--enable-xrandr \
--enable-xfixes \
--enable-xcomposite \
--enable-xdamage \
--enable-x11-backend \
--enable-wayland-backend \
--disable-x11-backend \
--disable-schemas-compile \
--disable-cups \
--disable-papi \

View File

@ -1,2 +1,4 @@
f57ec4ade8f15cab0c23a80dcaee85b876e70a8823d9105f067ce335a8268caa
7b57e54220110f00ee768536138f80e155e44b0f90d912610802c72a25a59510
e44b643a9ec01ea153817602241d6d7e6fd2d121b3ce4e29f99a87d8836a3ff0
7ee815e1d04b47d780bdbca3a30a22e1fa74a385a5443174c96315d625822216

View File

@ -1,13 +1,13 @@
atk
cairo
fontconfig
freetype-harfbuzz
gdk-pixbuf
libXcomposite
libXcursor
libXdamage
libXext
libXi
libXinerama
libXrandr
glib
libepoxy
libxkbcommon
meson make
pango
pkgconf make
python make
wayland

View File

@ -0,0 +1,37 @@
diff --git a/schemas/meson.build b/schemas/meson.build
index 69a3f98..d10b8cd 100644
--- a/schemas/schemas/meson.build
+++ b/schemas/schemas/meson.build
@@ -1,32 +1,5 @@
schemas = [
- 'org.gnome.desktop.default-applications.gschema.xml',
'org.gnome.desktop.interface.gschema.xml',
- 'org.gnome.desktop.lockdown.gschema.xml',
- 'org.gnome.system.locale.gschema.xml',
- 'org.gnome.system.location.gschema.xml',
- 'org.gnome.system.proxy.gschema.xml',
- 'org.gnome.desktop.sound.gschema.xml',
- 'org.gnome.desktop.thumbnail-cache.gschema.xml',
- 'org.gnome.desktop.a11y.gschema.xml',
- 'org.gnome.desktop.a11y.keyboard.gschema.xml',
- 'org.gnome.desktop.a11y.applications.gschema.xml',
- 'org.gnome.desktop.a11y.magnifier.gschema.xml',
- 'org.gnome.desktop.a11y.mouse.gschema.xml',
- 'org.gnome.desktop.thumbnailers.gschema.xml',
- 'org.gnome.desktop.session.gschema.xml',
- 'org.gnome.desktop.background.gschema.xml',
- 'org.gnome.desktop.calendar.gschema.xml',
- 'org.gnome.desktop.datetime.gschema.xml',
- 'org.gnome.desktop.media-handling.gschema.xml',
- 'org.gnome.desktop.screensaver.gschema.xml',
- 'org.gnome.desktop.search-providers.gschema.xml',
- 'org.gnome.desktop.wm.keybindings.gschema.xml',
- 'org.gnome.desktop.wm.preferences.gschema.xml',
- 'org.gnome.desktop.input-sources.gschema.xml',
- 'org.gnome.desktop.privacy.gschema.xml',
- 'org.gnome.desktop.notifications.gschema.xml',
- 'org.gnome.desktop.app-folders.gschema.xml',
- 'org.gnome.desktop.peripherals.gschema.xml',
]
conf = configuration_data()

View File

@ -1,2 +1,4 @@
https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.29.tar.xz
https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/archive/40.0/gsettings-desktop-schemas-40.0.tar.gz schemas
patches/no-fribidi.patch
patches/schemas.patch

12
extra/json-c/build Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh -e
export DESTDIR="$1"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF
cmake --build build
cmake --install build

1
extra/json-c/checksums Normal file
View File

@ -0,0 +1 @@
4ba9a090a42cf1e12b84c64e4464bb6fb893666841d5843cc5bef90774028882

1
extra/json-c/depends Normal file
View File

@ -0,0 +1 @@
cmake make

1
extra/json-c/sources Normal file
View File

@ -0,0 +1 @@
https://github.com/json-c/json-c/archive/json-c-0.15-20200726.tar.gz

1
extra/json-c/version Normal file
View File

@ -0,0 +1 @@
0.15 1

View File

@ -7,7 +7,10 @@ meson \
--sysconfdir=/etc \
--mandir=/usr/share/man \
-Dhas-dlvsym=false \
-Dx11=true \
-Degl=yes \
-Dtests=false \
-Dglx=no \
-Dx11=false \
. output
ninja -C output

View File

@ -1,3 +1,2 @@
libX11 make
mesa make
meson make

View File

@ -1 +0,0 @@
63f4ea1489858a109080e0b40bd43e4e0903a1e12ea888d581db8c495747c2d0

View File

@ -1,2 +0,0 @@
linux-headers make
python make

View File

@ -1 +0,0 @@
https://www.freedesktop.org/software/libevdev/libevdev-1.11.0.tar.xz

View File

@ -1 +0,0 @@
1.11.0 1

View File

@ -1,17 +0,0 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
-Ddebug-gui=false \
-Ddocumentation=false \
-Dtests=false \
-Dlibwacom=false \
. output
ninja -C output
ninja -C output install

View File

@ -1 +0,0 @@
65a657490de896081935cf0830a9773aa76756b8e9961edeffcce1074706bbe6

View File

@ -1 +0,0 @@
https://github.com/wayland-project/libinput/archive/1.18.0.tar.gz

View File

@ -6,6 +6,9 @@ meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
-Dwith_wayland=yes \
-Dwith_x11=no \
-Dwith_glx=no \
-Ddocs=false \
-Dintrospection=false \
. output

View File

@ -1,8 +1,6 @@
libX11
libXext
libXfixes
libdrm
linux-headers make
mesa
meson make
pkgconf make
wayland

View File

@ -33,14 +33,21 @@ export CFLAGS="$CFLAGS -DGLX_X86_READONLY_TEXT"
sed "/pre_args += '-DUSE_ELF_TLS'/d" meson.build > _
mv -f _ meson.build
# To prevent the need for users to fork the mesa package to add
# libglvnd support, the below code checks for its availability
# and enables it if present. ie: install glvnd, rebuild mesa.
! kiss l libglvnd >/dev/null 2>&1 || glvnd_enabled=true
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
-Dplatforms=x11 \
-Dplatforms=wayland \
-Dglx=disabled \
-Dzstd=false \
-Dglvnd="${glvnd_enabled:-false}" \
. output
ninja -C output

View File

@ -1,21 +1,14 @@
bison make
bison make
expat
flex make
libX11
libXdamage
libXext
libXrandr
libXrender
libXxf86vm
flex make
libdrm
libelf
libxcb
libxshmfence
linux-headers make
llvm
m4 make
meson make
pkgconf make
python make
xorgproto
m4 make
meson make
pkgconf make
python make
wayland
wayland-protocols make
zlib

11
extra/mesa/post-install Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
cat <<EOF
NOTE: Mesa + amdgpu requires CHECKPOINT_RESTORE be enabled
in your kernel or things will subtly break.
See: https://lwn.net/Articles/845448/
CONFIG_CHECKPOINT_RESTORE=y
EOF

View File

@ -6,7 +6,9 @@ python waf configure \
--prefix=/usr \
--mandir=/usr/share/man \
--confdir=/etc/mpv \
--enable-alsa
--enable-alsa \
--enable-wayland \
--disable-x11
python waf build
python waf install --destdir="$1"

View File

@ -2,9 +2,7 @@ alsa-lib
ffmpeg
freetype-harfbuzz
libass
libXScrnSaver
libXinerama
libXrandr
mesa
pkgconf make
python make
wayland

View File

@ -1 +0,0 @@
15d7b28da8ac71d8bc8c9287c2045fd174267bc740bec10cfda332dc1204e0e0

View File

@ -1 +0,0 @@
linux-headers make

View File

@ -1 +0,0 @@
https://bitmath.org/code/mtdev/mtdev-1.1.6.tar.bz2

View File

@ -1 +0,0 @@
1.1.6 1

View File

@ -16,6 +16,7 @@ meson \
--prefix=/usr \
-Dgir=false \
-Dgtk_doc=false \
-Dxft=disabled \
-Dintrospection=disabled \
-Dinstalled_tests=false \
. build

View File

@ -2,7 +2,5 @@ cairo
fontconfig
freetype-harfbuzz
glib
libXft
libXrender
meson make
pkgconf make

View File

@ -2,7 +2,9 @@
./configure \
--prefix=/usr \
--disable-gcov
--enable-unicode-properties
make
make DESTDIR="$1" install
rm -rf "${1:?}/usr/share"

1
extra/pcre/checksums Normal file
View File

@ -0,0 +1 @@
4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09

1
extra/pcre/sources Normal file
View File

@ -0,0 +1 @@
https://ftp.pcre.org/pub/pcre/pcre-8.45.tar.gz

1
extra/pcre/version Normal file
View File

@ -0,0 +1 @@
8.45 1

77
wayland/foot-pgo/build Executable file
View File

@ -0,0 +1,77 @@
#!/bin/sh -e
[ "$WAYLAND_DISPLAY" ] || {
printf 'error: foot-pgo requires a running wayland session\n' >&2
exit 1
}
export DESTDIR="$1"
# Avoid scdoc dependency.
sed "/subdir('doc')/d" meson.build > _
mv -f _ meson.build
# PGO with < -O3 is slow > GCC 10.1.X.
export CFLAGS="$CFLAGS -O3"
# Clang requires this for PGO.
case $("${CC:-cc}" --version) in *clang*)
export CFLAGS="$CFLAGS -Wno-ignored-optimization-argument"
esac
mkdir -p bld/release
cd bld/release
meson \
--prefix=/usr \
--buildtype=release \
--force-fallback-for=fcft,tllist \
-Db_lto=true \
../..
# Generate PGO data.
{
meson configure \
-Db_pgo=generate \
ninja
ninja test
# Required (gives some profiling data).
./footclient --version
set -- \
"$OLDPWD/scripts/generate-alt-random-writes.py" \
--scroll \
--scroll-region \
--colors-regular \
--colors-bright \
--colors-256 \
--colors-rgb \
--attr-bold \
--attr-italic \
--attr-underline \
--sixel \
.pgotmp
./foot \
--config=/dev/null \
--term=xterm \
sh -c "$* && cat .pgotmp"
}
# Clang requires this for PGO.
case $("${CC:-cc}" --version) in *clang*)
llvm-profdata merge default_*profraw --output=default.profdata
esac
meson configure -Db_pgo=use
ninja
ninja install
rm -rf \
"$DESTDIR/usr/share/doc" \
"$DESTDIR/usr/share/zsh" \
"$DESTDIR/usr/share/fish" \
"$DESTDIR/usr/share/bash-completion"

1
wayland/foot-pgo/checksums Symbolic link
View File

@ -0,0 +1 @@
../foot/checksums

1
wayland/foot-pgo/depends Symbolic link
View File

@ -0,0 +1 @@
../foot/depends

1
wayland/foot-pgo/sources Symbolic link
View File

@ -0,0 +1 @@
../foot/sources

1
wayland/foot-pgo/version Symbolic link
View File

@ -0,0 +1 @@
../foot/version

22
wayland/foot/build Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh -e
# Avoid scdoc dependency.
sed "/subdir('doc')/d" meson.build > _
mv -f _ meson.build
export DESTDIR="$1"
meson \
--prefix=/usr \
--buildtype=release \
--force-fallback-for=fcft,tllist \
. output
ninja -C output
ninja -C output install
rm -rf \
"$1/usr/share/doc" \
"$1/usr/share/zsh" \
"$1/usr/share/fish" \
"$1/usr/share/bash-completion"

3
wayland/foot/checksums Normal file
View File

@ -0,0 +1,3 @@
53df83617f7fbdd0f8f4c7a06e6e1716da61dbdcfb16aa65383ed31f4996195d
2fd05bde524aff59b6f3742471415316bffc18670eba2e743abf723ec45e7dfd
b0f32c9b2c2015c8d8dd068fd4e8b586aa91ca1670badc274ec962559ee0aadd

7
wayland/foot/depends Normal file
View File

@ -0,0 +1,7 @@
fontconfig
libxkbcommon
ncurses make
pkgconf make
python make
wayland
wayland-protocols make

3
wayland/foot/sources Normal file
View File

@ -0,0 +1,3 @@
https://codeberg.org/dnkl/foot/archive/1.8.1.tar.gz
https://codeberg.org/dnkl/fcft/archive/2.4.2.tar.gz subprojects/fcft
https://codeberg.org/dnkl/tllist/archive/1.0.5.tar.gz subprojects/tllist

1
wayland/foot/version Normal file
View File

@ -0,0 +1 @@
1.8.1 1

11
wayland/grim/build Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Djpeg=disabled \
. build
ninja -C build
ninja -C build install

1
wayland/grim/checksums Normal file
View File

@ -0,0 +1 @@
42c2952e98389506156c08e40e0c37afdc2ec5ef4d55a5a4febde6acdac4d1c8

3
wayland/grim/depends Normal file
View File

@ -0,0 +1,3 @@
cairo
wayland
wayland-protocols make

1
wayland/grim/sources Normal file
View File

@ -0,0 +1 @@
https://github.com/emersion/grim/releases/download/v1.3.2/grim-1.3.2.tar.gz

37
wayland/libinput/build Executable file
View File

@ -0,0 +1,37 @@
#!/bin/sh -e
patch -p1 < evdev-wrap.patch
export CFLAGS="$CFLAGS -fPIC"
for pkg in mtdev evdev; do (
cd "$pkg"
./configure \
--prefix=/usr \
--disable-shared \
--disable-gcov
make
make DESTDIR="$OLDPWD" install
) done
export PKG_CONFIG_PATH="$PWD/usr/lib/pkgconfig"
export CFLAGS="$CFLAGS -I$PWD/usr/include -L$PWD/usr/lib"
export CFLAGS="$CFLAGS -I$PWD/usr/include/libevdev-1.0"
export DESTDIR="$1"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
-Ddefault_library=both \
-Ddebug-gui=false \
-Ddocumentation=false \
-Dtests=false \
-Dlibwacom=false \
. output
ninja -C output
ninja -C output install

View File

@ -0,0 +1,4 @@
65a657490de896081935cf0830a9773aa76756b8e9961edeffcce1074706bbe6
15d7b28da8ac71d8bc8c9287c2045fd174267bc740bec10cfda332dc1204e0e0
63f4ea1489858a109080e0b40bd43e4e0903a1e12ea888d581db8c495747c2d0
9667e17dada5e8f7383b547a165a4df9d335fa5540787f53e4f46b45750652b6

View File

@ -1,6 +1,4 @@
libevdev
libudev-zero
linux-headers make
meson make
mtdev
pkgconf make

View File

@ -0,0 +1,114 @@
diff --git a/src/evdev.c b/src/evdev.c
index 0f892b8..12fdaf2 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -133,6 +133,17 @@ evdev_update_key_down_count(struct evdev_device *device,
return key_count;
}
+int
+evdev_event_code_from_name(unsigned int type, const char *name)
+{
+ return libevdev_event_code_from_name(type, name);
+}
+
+const char *
+evdev_event_code_get_name (unsigned int type, unsigned int code) {
+ return libevdev_event_code_get_name(type, code);
+}
+
enum libinput_switch_state
evdev_device_switch_get_state(struct evdev_device *device,
enum libinput_switch sw)
diff --git a/src/evdev.h b/src/evdev.h
index 0a4798f..352c22b 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -401,6 +401,12 @@ evdev_device_has_model_quirk(struct evdev_device *device,
return result;
}
+int
+evdev_event_code_from_name(unsigned int type, const char *name);
+
+const char *
+evdev_event_code_get_name (unsigned int type, unsigned int code);
+
void
evdev_transform_absolute(struct evdev_device *device,
struct device_coords *point);
diff --git a/src/libinput.c b/src/libinput.c
index b4164e2..b2ff1f3 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -310,6 +310,17 @@ log_msg_ratelimit(struct libinput *libinput,
us2ms(ratelimit->interval));
}
+LIBINPUT_EXPORT int
+libinput_event_code_from_name(unsigned int type, const char *name)
+{
+ return evdev_event_code_from_name(type, name);
+}
+
+LIBINPUT_EXPORT const char *
+libinput_event_code_get_name (unsigned int type, unsigned int code) {
+ return evdev_event_code_get_name(type, code);
+}
+
LIBINPUT_EXPORT void
libinput_log_set_priority(struct libinput *libinput,
enum libinput_log_priority priority)
diff --git a/src/libinput.h b/src/libinput.h
index a15d627..edb8849 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -416,6 +416,35 @@ enum libinput_tablet_tool_tip_state {
*/
struct libinput_tablet_pad_mode_group;
+
+/**
+ * @ingroup base
+ *
+ * A wrapper around libevdev_event_code_from_name for use in sway.
+ * For use in KISS Linux.
+ *
+ * @param type The event type (EV_* constant) where to look for the name.
+ * @param name A non-NULL string describing an input-event code, zero-terminated.
+ *
+ * @return The given code constant for the passed name or -1 if not found.
+ */
+int
+libinput_event_code_from_name(unsigned int type, const char *name);
+
+/**
+ * @ingroup base
+ *
+ * A wrapper around libevdev_event_code_get_name for use in sway.
+ * For use in KISS Linux.
+ *
+ * @param type The event type for the code to query (EV_SYN, EV_REL, etc.)
+ * @param code The event code to return the name for (e.g. ABS_X)
+ *
+ * @return The name of the given event code or NULL for an invalid type or code.
+ */
+const char *
+libinput_event_code_get_name(unsigned int type, unsigned int code);
+
/**
* @ingroup tablet_pad_modes
*
diff --git a/src/libinput.sym b/src/libinput.sym
index b45838e..ce88063 100644
--- a/src/libinput.sym
+++ b/src/libinput.sym
@@ -61,6 +61,8 @@ global:
libinput_device_set_user_data;
libinput_device_unref;
libinput_dispatch;
+ libinput_event_code_from_name;
+ libinput_event_code_get_name;
libinput_event_destroy;
libinput_event_device_notify_get_base_event;
libinput_event_get_context;

4
wayland/libinput/sources Normal file
View File

@ -0,0 +1,4 @@
https://github.com/wayland-project/libinput/archive/1.18.0.tar.gz
https://bitmath.org/code/mtdev/mtdev-1.1.6.tar.bz2 mtdev
https://freedesktop.org/software/libevdev/libevdev-1.11.0.tar.xz evdev
patches/evdev-wrap.patch

11
wayland/libseat/build Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
-Ddefault_library=both \
. build
ninja -C build
ninja -C build install

View File

@ -0,0 +1 @@
274b56324fc81ca6002bc1cdd387668dee34a6e1063e5f3896805c3770948988

1
wayland/libseat/depends Normal file
View File

@ -0,0 +1 @@
meson make

1
wayland/libseat/sources Normal file
View File

@ -0,0 +1 @@
https://git.sr.ht/~kennylevinsen/seatd/archive/0.5.0.tar.gz

1
wayland/libseat/version Normal file
View File

@ -0,0 +1 @@
0.5.0 1

View File

@ -7,7 +7,8 @@ meson \
--libexecdir=/usr/lib \
-Ddefault_library=both \
-Denable-docs=false \
-Denable-wayland=false \
-Denable-wayland=true \
-Denable-x11=false \
-Denable-xkbregistry=false \
. output

View File

@ -1,3 +1,5 @@
bison make
meson make
pkgconf make
wayland
wayland-protocols make

11
wayland/slurp/build Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
export DESTDIR="$1"
meson \
--prefix=/usr \
--buildtype=release \
. output
ninja -C output
ninja -C output install

Some files were not shown because too many files have changed in this diff Show More