Subject: [PATCH] gnu: herbstluftwm: Enable Xcursor support.

From: [email-masked]
Date: Tue, 28 Feb 2023 11:02:06 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/wm.scm (herbstluftwm)[inputs]: Add libxcursor.
[arguments]: Set 'LDFLAGS' to '-lXcursor'.
---
 gnu/packages/wm.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index a20c0a9440..38aab7c059 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -208,6 +208,7 @@ (define-public herbstluftwm
            xterm
            xsetroot
            libx11
+           libxcursor
            libxext
            libxfixes
            libxinerama
@@ -224,6 +225,10 @@ (define-public herbstluftwm
                (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
        #:phases
        (modify-phases %standard-phases
+         (add-before 'configure 'link-libxcursor
+           (lambda _
+             ;; libX11 will dlopen libXcursor to load cursors.
+             (setenv "LDFLAGS" "-lXcursor")))
          (add-after 'install 'install-xsession
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))

base-commit: ff5fbcc19bce6e94ead0cc79b27ae8ed0307463d
prerequisite-patch-id: 720b6ad92b3e9a1d7fd35692b2c14117af2d29ae
-- 
2.39.1