diff --git a/gfx/common/wayland/generate_wayland_protos.sh b/gfx/common/wayland/generate_wayland_protos.sh
index c3b4c9f220..e64ea58914 100755
--- a/gfx/common/wayland/generate_wayland_protos.sh
+++ b/gfx/common/wayland/generate_wayland_protos.sh
@@ -9,8 +9,8 @@ fi
 
 #Generate xdg-shell header and .c files
 $WAYSCAN client-header $WAYLAND_PROTOS/stable/xdg-shell/xdg-shell.xml $OUTPUT/xdg-shell.h
-$WAYSCAN private-code $WAYLAND_PROTOS/stable/xdg-shell/xdg-shell.xml $OUTPUT/xdg-shell.c
+$WAYSCAN code $WAYLAND_PROTOS/stable/xdg-shell/xdg-shell.xml $OUTPUT/xdg-shell.c
 
 #Generate idle-inhibit header and .c files
 $WAYSCAN client-header $WAYLAND_PROTOS/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml $OUTPUT/idle-inhibit-unstable-v1.h
-$WAYSCAN private-code $WAYLAND_PROTOS/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml $OUTPUT/idle-inhibit-unstable-v1.c
+$WAYSCAN code $WAYLAND_PROTOS/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml $OUTPUT/idle-inhibit-unstable-v1.c
diff --git a/qb/config.libs.sh b/qb/config.libs.sh
index 0fd0fe4aa3..233fd9760a 100644
--- a/qb/config.libs.sh
+++ b/qb/config.libs.sh
@@ -455,9 +455,9 @@ check_pkgconf V4L2 libv4l2
 check_pkgconf FREETYPE freetype2
 check_pkgconf X11 x11
 check_pkgconf XCB xcb
-check_pkgconf WAYLAND wayland-egl 1.15
-check_pkgconf WAYLAND_CURSOR wayland-cursor 1.15
-check_pkgconf WAYLAND_PROTOS wayland-protocols 1.15
+check_pkgconf WAYLAND wayland-egl 1.14
+check_pkgconf WAYLAND_CURSOR wayland-cursor 1.14
+check_pkgconf WAYLAND_PROTOS wayland-protocols 1.13
 check_pkgconf XKBCOMMON xkbcommon 0.3.2
 check_pkgconf DBUS dbus-1
 check_pkgconf XEXT xext
@@ -474,7 +474,7 @@ check_val '' XEXT -lXext
 check_val '' XF86VM -lXxf86vm
 
 if [ "$HAVE_WAYLAND_PROTOS" = yes ] && [ "$HAVE_WAYLAND" = yes ]; then
-    check_pkgconf WAYLAND_SCANNER wayland-scanner 1.15
+    check_pkgconf WAYLAND_SCANNER wayland-scanner 1.13
     ./gfx/common/wayland/generate_wayland_protos.sh
 else
     die : 'Notice: wayland-egl or wayland-protocols not present. Skiping Wayland code paths.'