From 0181a61a3d0b007326852bf7080da2c31935e862 Mon Sep 17 00:00:00 2001 From: IoIxD Date: Wed, 20 May 2026 13:56:20 -0700 Subject: [PATCH] add libdecor cflags to perl --- include/Mw/LowLevel/Wayland.h | 2 +- pl/ostype/Linux.pl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Mw/LowLevel/Wayland.h b/include/Mw/LowLevel/Wayland.h index 575c867..2053561 100644 --- a/include/Mw/LowLevel/Wayland.h +++ b/include/Mw/LowLevel/Wayland.h @@ -397,7 +397,7 @@ MwInline int wayland_load_funcs() { #include "Wayland/xdg-toplevel-icon-client-protocol.h" #endif -#include +#include typedef struct wayland_protocol { void* listener; diff --git a/pl/ostype/Linux.pl b/pl/ostype/Linux.pl index 75159d5..3cfdf24 100644 --- a/pl/ostype/Linux.pl +++ b/pl/ostype/Linux.pl @@ -2,6 +2,7 @@ my @enabled_backends = (); if (param_get("wayland") && not(param_get("tiny"))) { push(@enabled_backends, "wayland"); + add_cflags(`pkg-config --cflags libdecor-0`); } if (param_get("x11")) { push(@enabled_backends, "x11"); @@ -9,6 +10,7 @@ if (param_get("x11")) { add_cflags("-DUSE_DBUS"); + use_backend(@enabled_backends); 1;