Subject: [PATCH v3 4/7] gnu: Add plasma-applet-window-appmenu.

From: Sughosha <[email-masked]>
Date: Sat, 4 Nov 2023 01:36:58 +0100

* gnu/packages/kde-xyz.scm (plasma-applet-window-appmenu): New variable.

Change-Id: I3bb2bd8faa11224ea226aa3753e0c66d99db4798
---
 gnu/packages/kde-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 45 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-xyz.scm b/gnu/packages/kde-xyz.scm
index 613733a7b0..c24c50f60a 100644
--- a/gnu/packages/kde-xyz.scm
+++ b/gnu/packages/kde-xyz.scm
@@ -18,12 +18,16 @@
 
 (define-module (gnu packages kde-xyz)
   #:use-module (guix build-system copy)
+  #:use-module (guix build-system qt)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages gnome-xyz)
-  #:use-module (gnu packages qt))
+  #:use-module (gnu packages kde-frameworks)
+  #:use-module (gnu packages kde-plasma)
+  #:use-module (gnu packages qt)
+  #:use-module (gnu packages xorg))
 
 (define-public flat-remix-kde-theme
   (let ((commit "18ac464d5b77dd140aeb6c6b98d687c086959247")
@@ -114,3 +118,43 @@ (define-public plasma-applet-better-inline-clock
       (description
        "This package provides single line clock applet for Plasma.")
       (license license:gpl2+))))
+
+(define-public plasma-applet-window-appmenu
+  ;; This commit fixes appmenu being unresponsive when hovering over other
+  ;; options after clicking on one.
+  (let ((commit "e044296256c866177c5c929f9280fb86b26dbf06")
+        (revision "0"))
+    (package
+      (name "plasma-applet-window-appmenu")
+      (version (git-version "0.8.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+            (url "https://github.com/psifidotos/applet-window-appmenu")
+            (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0n8jgn6vaw4ncvrqm1snn6izg16by1f9rzkjypphr8a6z65nz2dn"))))
+      (build-system qt-build-system)
+      (native-inputs
+       (list extra-cmake-modules))
+      (inputs
+       (list libsm
+             kconfigwidgets
+             kdecoration
+             kirigami
+             kitemmodels
+             kwayland
+             kwindowsystem
+             plasma-framework
+             plasma-workspace
+             qtdeclarative-5
+             qtx11extras))
+      (home-page "https://github.com/psifidotos/applet-window-appmenu")
+      (synopsis "Appmenu applet for Plasma")
+      (description
+       "This plasmoid shows the current window appmenu in Plasma panels or
+Latte Dock.")
+      (license license:gpl2+))))
-- 
2.41.0