From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oDT6OrZhQWVNxQAAauVa8A:P1 (envelope-from ) for ; Tue, 31 Oct 2023 21:21:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oDT6OrZhQWVNxQAAauVa8A (envelope-from ) for ; Tue, 31 Oct 2023 21:21:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 926F113325 for ; Tue, 31 Oct 2023 21:21:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=KKw5Baau; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698783670; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=n3EXf4r8z9/7MoUdO0ZoAdVe0Otjk08TgOpjCk3puwg=; b=eO1BAwbtZfqCMkxKE4Ao+qgLgVj3N/InshGbXGEAtDnvSI4JCd7XlYy+invoWd5vSo4/1l kgU7rvBo9Hahiknf8nWrRRy4i1EvN+O6r1O1B9F7hNySZYHQGkMG/I7gA9Uq02HYyUUvl5 j3UNpALemPIPPOA6iRk+ytB2utAh9035psoPkAYUDqhZ+34YXRdgr1Sps9lgMwNma715dd XxhKF5yNvRlSasSj+6ddRMMT4j5s4tMILxMO5ThlaaxWa+HXM3uH3rAvwdlnXTT1g0ZZ1f I0CtFLzEjZvPbqbg2I7gnCW3N4Fiaugygk0JmVuITTvLkNdNNQyIkPplMTyc4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=KKw5Baau; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698783670; a=rsa-sha256; cv=none; b=Gep6p1x6/lSpEsLGRdz2SMWleZwRHJkhx4GaLFSejQNehS1UE9Qs3z4S2uiL0mO0q/aH5b RDOZd4QSLyWg/OMD4aGxc+N5t6iTOqeNJHFbFx+hJvKmbVzrZNmFJQ6wsGcpp0aExvcz2j JyNOzvzNvXsIiJfqkq5qj+yy8r2Ivo0bUI8dt3nAuhcrkSLlaqTnI31V6T1a3H1myeVeod Qy6LZbWnV9gPVxNcVDgyIrn3BZCnlB/PWWl549ourDq/MHl2wTLkMSLI0gPG24gKHlXSbJ vM6PADnybJxJs/YoAvaW+VtHHatwzodsNbZmWIqAmk7emDFaE5uOF8hUALFlGg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxvE3-0000Lr-CW; Tue, 31 Oct 2023 16:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxvE2-0000LJ-1m for guix-patches@gnu.org; Tue, 31 Oct 2023 16:20:34 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxvE1-0003ns-Q8 for guix-patches@gnu.org; Tue, 31 Oct 2023 16:20:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxvEZ-00079O-ME for guix-patches@gnu.org; Tue, 31 Oct 2023 16:21:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66861] [PATCH 5/7] gnu: Add plasma-shell-applet-window-buttons. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Oct 2023 20:21:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66861 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66861@debbugs.gnu.org Cc: Sughosha X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169878363527330 (code B ref -1); Tue, 31 Oct 2023 20:21:07 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2023 20:20:35 +0000 Received: from localhost ([127.0.0.1]:49275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxvE2-00076d-Nt for submit@debbugs.gnu.org; Tue, 31 Oct 2023 16:20:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxvDn-00074g-Pb for submit@debbugs.gnu.org; Tue, 31 Oct 2023 16:20:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxvD9-000868-50 for guix-patches@gnu.org; Tue, 31 Oct 2023 16:19:39 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxvD6-0003SR-SK for guix-patches@gnu.org; Tue, 31 Oct 2023 16:19:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E967744E7B; Tue, 31 Oct 2023 21:19:29 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4j9A93q45WTN; Tue, 31 Oct 2023 21:19:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1698783568; bh=ZVem1sic58DTxHkT23S4t2FOvZYSMGTHIATMzBZ8AWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KKw5Baau9CfgOWqQTwJ2zjVRtuAwSmS+lem4joinr5WW4cOaZlsqZ/YoPWMU9t44F wPyjuIGxX/ygOu2zXv/zuzcCEQ89uCJw1ykJeq4Qb7ko4r3uPwuSfNvVWclfqCPM/0 uf20fkec/sSogO1dx62Suyn8whl2FsaXknZAUofQReetWIt02FRbT58IKLrFzIoclr M8bZOwSOKg3eGk7Rty44wMjlbwyH7UmOL0d0QSCqfIUNTTHIb4I6kdlq/D5RFnPNMX CHqcqD8q7/i/6JztG0dAAYWEE+vPFc0UpJDXrYRfm4ypnhTrYokP64PE1MEzeJ5/qz Pl3/Iviy91WUQ== Date: Tue, 31 Oct 2023 21:18:59 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=sughosha@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.11 X-Spam-Score: -6.11 X-Migadu-Queue-Id: 926F113325 X-Migadu-Scanner: mx13.migadu.com X-TUID: hPHh4l137tYt * gnu/packages/kde-xyz.scm (plasma-shell-applet-window-buttons): New variable. * gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch: New file. * gnu/local.mk: Register it. Change-Id: I6e9d9b6acda80d038060b04502aaa40c1cb548a3 --- gnu/local.mk | 1 + gnu/packages/kde-xyz.scm | 37 +++++++++++++ ...sion-window-buttons-applet-fix-build.patch | 52 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch diff --git a/gnu/local.mk b/gnu/local.mk index 03e8c28d45..41e3b71346 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1747,6 +1747,7 @@ dist_patch_DATA = \ %D%/packages/patches/petri-foo-0.1.87-fix-recent-file-not-exist.patch \ %D%/packages/patches/php-fix-streams-copy-length.patch \ %D%/packages/patches/plasma-framework-fix-KF5PlasmaMacros.cmake.patch \ + %D%/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch \ %D%/packages/patches/pocketfft-cpp-prefer-preprocessor-if.patch \ %D%/packages/patches/pokerth-boost.patch \ %D%/packages/patches/ppsspp-disable-upgrade-and-gold.patch \ diff --git a/gnu/packages/kde-xyz.scm b/gnu/packages/kde-xyz.scm index cde12d45b4..42d5046cf2 100644 --- a/gnu/packages/kde-xyz.scm +++ b/gnu/packages/kde-xyz.scm @@ -152,3 +152,40 @@ (define-public plasma-shell-applet-window-appmenu "This plasmoid shows the current window appmenu in Plasma panels or Latte Dock.") (license license:gpl2+)))) + +(define-public plasma-shell-applet-window-buttons + (package + (name "plasma-shell-applet-window-buttons") + (version "0.11.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/psifidotos/applet-window-buttons") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wbiw5gz6fp8rf2f8sd3ibgkx9abvi0d3s0xz6m3p6n4cvdky323")) + (patches + (search-patches + "plasma-shell-extension-window-buttons-applet-fix-build.patch")))) + (build-system qt-build-system) + (native-inputs + (list extra-cmake-modules)) + (inputs + (list kcmutils + kconfigwidgets + kcoreaddons + kdeclarative + ki18n + kservice + kwindowsystem + plasma-framework + qtdeclarative-5)) + (propagated-inputs + (list kdecoration)) + (home-page "https://github.com/psifidotos/applet-window-buttons") + (synopsis "Window buttons in Plasma panels") + (description + "This plasmoid shows window buttons in Plasma panels or Latte Dock.") + (license license:gpl2+))) diff --git a/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch b/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch new file mode 100644 index 0000000000..afbb62eb30 --- /dev/null +++ b/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch @@ -0,0 +1,52 @@ +From 924994e10402921bf22fefc099bca2914989081c Mon Sep 17 00:00:00 2001 +From: Dmitry Chermnykh <76gh6rvso@relay.firefox.com> +Date: Mon, 23 Jan 2023 21:21:47 +0500 +Subject: [PATCH] Support building on plasma 5.26.90+ + +--- + CMakeLists.txt | 2 +- + libappletdecoration/previewclient.cpp | 5 +++++ + libappletdecoration/previewclient.h | 1 + + 3 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5ecec88..43adaef 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -8,7 +8,7 @@ set(EMAIL "mvourlakos@gmail.com") + + set(QT_MIN_VERSION "5.15.0") + set(KF5_MIN_VERSION "5.81.0") +-set(KDECORATION2_MIN_VERSION "5.24.0") ++set(KDECORATION2_MIN_VERSION "5.26.90") + + set(KF5_LOCALE_PREFIX "") + +diff --git a/libappletdecoration/previewclient.cpp b/libappletdecoration/previewclient.cpp +index 2cf184b..3ffe358 100644 +--- a/libappletdecoration/previewclient.cpp ++++ b/libappletdecoration/previewclient.cpp +@@ -263,6 +263,11 @@ WId PreviewClient::windowId() const + return 0; + } + ++QString PreviewClient::windowClass() const ++{ ++ return QString("kwin_preview"); ++} ++ + QPalette PreviewClient::palette() const + { + return m_palette->palette(); +diff --git a/libappletdecoration/previewclient.h b/libappletdecoration/previewclient.h +index c479acc..e5fbe7a 100644 +--- a/libappletdecoration/previewclient.h ++++ b/libappletdecoration/previewclient.h +@@ -74,6 +74,7 @@ class PreviewClient : public QObject, public KDecoration2::ApplicationMenuEnable + QString caption() const override; + WId decorationId() const override; + WId windowId() const override; ++ QString windowClass() const override; + int desktop() const override; + QIcon icon() const override; + bool isActive() const override; -- 2.41.0