From 4616844b8a8d5f1ceeac81cf88afc964b20b3288 Mon Sep 17 00:00:00 2001
From: flightlessmango <flightlessmangoyt@gmail.com>
Date: Fri, 14 Feb 2025 13:14:18 +0100
Subject: [PATCH] meson: x11 and wayland uses xkb

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 15e28b486f..6e620b93b3 100644
--- a/meson.build
+++ b/meson.build
@@ -90,6 +90,7 @@ if is_unixy
       required: get_option('with_wayland'), version : '>=1.11')
   dbus_dep = dependency('dbus-1', required: get_option('with_dbus')).partial_dependency(compile_args : true, includes : true)
   dep_xkb = dependency('xkbcommon', required: get_option('with_x11').enabled() or get_option('with_wayland').enabled())
+  vulkan_wsi_deps += dep_xkb
 else
   dep_x11 = null_dep
   dep_wayland_client = null_dep
@@ -103,7 +104,6 @@ endif
 if dep_wayland_client.found()
   vulkan_wsi_args += ['-DVK_USE_PLATFORM_WAYLAND_KHR']
   vulkan_wsi_deps += dep_wayland_client
-  vulkan_wsi_deps += dep_xkb
 endif
 
 if is_unixy and not dep_x11.found() and not dep_wayland_client.found()
