diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-17 01:45:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-17 01:46:01 +0900 |
| commit | 3afca2bd5b58645ad503bc8ef6dfa4f05d2e01e0 (patch) | |
| tree | 4aff66389b0405e5e53fd73c9d434ab839824f74 /internal/wayland | |
| parent | b73a789dfe2b7361d9fce7d6755d14e44f6d9d57 (diff) | |
internal/wayland: expose WAYLAND_VERSION
This might be useful troubleshooting information.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/wayland')
| -rw-r--r-- | internal/wayland/wayland.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/wayland/wayland.go b/internal/wayland/wayland.go index cc4f4e04..d0ec6cf6 100644 --- a/internal/wayland/wayland.go +++ b/internal/wayland/wayland.go @@ -9,6 +9,7 @@ package wayland #cgo freebsd openbsd LDFLAGS: -lwayland-client #include "wayland-client-helper.h" +#include <wayland-version.h> */ import "C" import ( @@ -17,6 +18,9 @@ import ( ) const ( + // Version is the value of WAYLAND_VERSION. + Version = C.WAYLAND_VERSION + // Display contains the name of the server socket // (https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.23.1/src/wayland-client.c#L1147) // which is concatenated with XDG_RUNTIME_DIR |
