From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: tangxiaofeng <tangxiaofeng@kylinos.cn>
Date: Sep, 16 2026 14:30:26 +0000
Subject: [PATCH] Fix link failure: undefined reference to window_is_desktop

window_is_desktop() is defined in the common/wck-utils.h header as a plain
C99 "inline" function with no out-of-line (external) definition in any
translation unit. Under the ISO C inline semantics used by GCC since
version 5 (here -std=gnu23), such a definition is an inline definition
only: no external symbol is emitted, so linking the panel plugin modules
with -no-undefined / -Wl,-z,defs fails with

    undefined reference to `window_is_desktop'

Make the helper a static inline function so that every translation unit
which includes the header gets its own definition.

---
Description: Fix link failure: undefined reference to window_is_desktop
 Mark window_is_desktop() as static inline in common/wck-utils.h so that a
 definition is emitted in every translation unit using it.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-09-16

--- xfce4-windowck-plugin-0.5.1.orig/common/wck-utils.h
+++ xfce4-windowck-plugin-0.5.1/common/wck-utils.h
@@ -60,7 +60,7 @@ void reload_wnck (WckUtils *win, gboolea
 void toggle_maximize (WnckWindow *window);
 gboolean wck_signal_handler_disconnect (GObject *object, gulong handler);
 
-inline gboolean
+static inline gboolean
 window_is_desktop (WnckWindow *window)
 {
     return wnck_window_get_window_type (window) == WNCK_WINDOW_DESKTOP;
