1
0

Compare commits

...

20 Commits

Author SHA256 Message Date
fc6c3d6b9f Accepting request 1066030 from KDE:Extra
- Add kdecoration-5.27.patch to fix build with Plasma 5.27
- Increase version requirement for plasma and kdecoration to 5.27

OBS-URL: https://build.opensuse.org/request/show/1066030
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=15
2023-02-16 15:56:17 +00:00
Cor Blom
e9a9c2d56d OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=38 2023-02-15 18:33:50 +00:00
Cor Blom
9e626f95b2 - Add kdecoration-5.27.patch to fix build with Plasma 5.27
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=37
2023-02-15 18:27:43 +00:00
7367f57ba8 Accepting request 953931 from KDE:Extra
- Update to 0.11.1:
  * Add missing version

- Uupdate to 0.11.0: 
  * support Plasma 5.24 way of discovering themes from theme engines
  * hide when preserveemptyspace is selected

OBS-URL: https://build.opensuse.org/request/show/953931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=14
2022-02-12 23:15:26 +00:00
Cor Blom
7f60b64672 - Update to 0.11.1:
* Add missing version

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=36
2022-02-12 16:44:11 +00:00
Cor Blom
bf07990461 - Uupdate to 0.11.0:
* support Plasma 5.24 way of discovering themes from theme engines
  * hide when preserveemptyspace is selected

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=35
2022-02-12 11:55:49 +00:00
5cbee398a4 Accepting request 944057 from KDE:Extra
OBS-URL: https://build.opensuse.org/request/show/944057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=13
2022-01-07 11:45:39 +00:00
Cor Blom
3412ba9419 Accepting request 944052 from home:cgiboudeaux:branches:KDE:Extra
- Fix installation (again) when using plasma-framework 5.89.

OBS-URL: https://build.opensuse.org/request/show/944052
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=34
2022-01-05 14:26:07 +00:00
bfb944de87 Accepting request 929220 from KDE:Extra
- Update to 0.10.1:
  * fix glitches with slide-in/out animations
  * improve cpu and hard disk usage
  * remove all workarounds related to faulty buttons painting
  * respect and trust bug fixes in decorations provided with Plasma 5.23.2

OBS-URL: https://build.opensuse.org/request/show/929220
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=12
2021-11-05 21:58:24 +00:00
Cor Blom
e76a967ce9 - Update to 0.10.1:
* fix glitches with slide-in/out animations
  * improve cpu and hard disk usage
  * remove all workarounds related to faulty buttons painting
  * respect and trust bug fixes in decorations provided with Plasma 5.23.2

OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/applet-window-buttons?expand=0&rev=33
2021-11-04 16:50:34 +00:00
c6d10df5e7 Accepting request 926771 from KDE:Extra
- Update to 0.10.0:
  * Support Plasma 5.23
  * Depend only on Plasma and KDecorations2 >=5.23
  * drop option for plasma panels to disable decoration on maximized
    windows
- Remove fix-for-plasma-5.23.patch, part of this release

- Add fix-for-plasma-5.23.patch to fix build with Plasma 5.23
- This means Plasma 5.23 (specifically kdecoration) 5.23 is now
  the minumum requirement

OBS-URL: https://build.opensuse.org/request/show/926771
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=11
2021-10-21 21:55:27 +00:00
9d8f62ca56 Accepting request 906913 from KDE:Extra
- Fix the %files section. plasma-framework >= 5.84 doesn't install
  desktop files in %_kf5_servicesdir anymore.

OBS-URL: https://build.opensuse.org/request/show/906913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=10
2021-07-22 20:43:17 +00:00
aee9297bb3 Accepting request 892286 from KDE:Extra
- Update to 0.9.0:
  * support Plasma 5.18 and 5.21
  * support aurorae monochrome icons with Latte auto-color functionality
  * support aurorae restore button
  * fix, do not hide buttons for AlwaysVisible
  * fix, do not hide button in Latte edit mode
  * fix, improve default based on Plasma values
  * fix, preserve empty space for hidden states when needed
  * remove no needed workarounds
_ Remove fix-build-plasma-5.21.patch (part of release now)

OBS-URL: https://build.opensuse.org/request/show/892286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=9
2021-05-11 21:04:39 +00:00
Richard Brown
0d498a10d8 Accepting request 874782 from KDE:Extra
- Add fix-build-plasma-5.21.patch to fix compilation with Plasma
  5.21

OBS-URL: https://build.opensuse.org/request/show/874782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=8
2021-02-25 17:27:57 +00:00
Oliver Kurz
9f8d991227 Accepting request 774193 from KDE:Extra
- Update to version 0.8.1:
  * fix compatibility with Plasma 5.18 (Rodrigo Pedra Brum)
  * never hide buttons for AlwaysVisible visibility state

OBS-URL: https://build.opensuse.org/request/show/774193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=7
2020-02-14 15:38:16 +00:00
456a040d5e Accepting request 768179 from KDE:Extra
new version

OBS-URL: https://build.opensuse.org/request/show/768179
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=6
2020-01-29 12:18:41 +00:00
7b231e6d0f Accepting request 750571 from KDE:Extra
- Update to version 0.7.0:
  * introduce a new Button Size percentage option and drop
    thickness margin in order to set the buttons size
  * introduce Hidden State in order for the user to choose how
    buttons should behave when they should not be shown. Currently
    two states are supported: Slide out and Preserve Empty Space
  * introduce a new Color Scheme based on current Plasma Theme
    used and make it also default
  * live preview for changes in the settings window
  * do not crash when the selected decoration does not exist in the
    systemm, for example it was uninstalled
  * update buttons for scheme changes

- Update to version 0.6.0:

OBS-URL: https://build.opensuse.org/request/show/750571
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=5
2019-11-25 10:25:25 +00:00
25cb8847b5 Accepting request 727630 from KDE:Extra
- Update source URL

- Update to version 0.6.1:
  * new visibility mode: At least one window is shown
  * option to draw buttons in inactive state (for both c++ and
    aurorae decorations)
  * fix the current buttons decoration discovery, the user can now
    change between different decorations and the buttons style is
    updated runtime
  * hide when the last maximized window is closed and the visibility
    mode is ActiveMaximized
  * fix multi-screens behavior for Latte panels
  * fix typo that broke builds at some systems

OBS-URL: https://build.opensuse.org/request/show/727630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=4
2019-09-02 11:26:54 +00:00
a66bf0ae2c Accepting request 714931 from KDE:Extra
- Update to version 0.5.0:
  * provide a relevant background for window buttons in configuration
    window to fix contrast issues
  * support new Latte v0.9 Communicator API
  * support new Latte v0.9 Windows Tracking interface when in Latte
    dock/panel

OBS-URL: https://build.opensuse.org/request/show/714931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=3
2019-07-13 11:50:38 +00:00
01f8f77481 Accepting request 712637 from KDE:Extra
OBS-URL: https://build.opensuse.org/request/show/712637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/applet-window-buttons?expand=0&rev=2
2019-07-01 08:44:20 +00:00
5 changed files with 98 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:76508d05238d74cddf6f88a8260d720c5d2288f8bd537bf59b9d1ce5151c1c91
size 58644

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0588a3bba77206766549139b4bee1a08b7be7a7113e658f746709b9ee4d3017a
size 58160

View File

@@ -1,3 +1,36 @@
-------------------------------------------------------------------
Wed Feb 15 18:27:00 UTC 2023 - Cor Blom <cornelis@solcon.nl>
- Add kdecoration-5.27.patch to fix build with Plasma 5.27
- Increase version requirement for plasma and kdecoration to 5.27
-------------------------------------------------------------------
Sat Feb 12 16:43:41 UTC 2022 - Cor Blom <cornelis@solcon.nl>
- Update to 0.11.1:
* Add missing version
-------------------------------------------------------------------
Sat Feb 12 11:50:06 UTC 2022 - Cor Blom <cornelis@solcon.nl>
- Uupdate to 0.11.0:
* support Plasma 5.24 way of discovering themes from theme engines
* hide when preserveemptyspace is selected
-------------------------------------------------------------------
Wed Jan 5 13:48:51 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- Fix installation (again) when using plasma-framework 5.89.
-------------------------------------------------------------------
Thu Nov 4 16:49:26 UTC 2021 - Cor Blom <cornelis@solcon.nl>
- Update to 0.10.1:
* fix glitches with slide-in/out animations
* improve cpu and hard disk usage
* remove all workarounds related to faulty buttons painting
* respect and trust bug fixes in decorations provided with Plasma 5.23.2
-------------------------------------------------------------------
Thu Oct 21 12:58:27 UTC 2021 - Cor Blom <cornelis@solcon.nl>

View File

@@ -1,7 +1,7 @@
#
# spec file for package applet-window-buttons
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,19 @@
#
%define kf5_version 5.38
%define qt5_version 5.9
%define kf5_version 5.81
%define qt5_version 5.15
Name: applet-window-buttons
Version: 0.10.0
Version: 0.11.1
Release: 0
Summary: Plasma 5 applet to show window buttons in panels
License: GPL-2.0-or-later
Group: System/GUI/KDE
URL: https://github.com/psifidotos/applet-window-buttons
Source: https://github.com/psifidotos/applet-window-buttons/archive/%{version}/%{name}-%{version}.tar.gz
# Fix for building with 5.27, taken from: ;https://github.com/psifidotos/applet-window-buttons/pull/191
Patch0: kdecoration-5.27.patch
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kconfig-devel >= %{kf5_version}
@@ -39,8 +41,8 @@ BuildRequires: kwindowsystem-devel >= %{kf5_version}
BuildRequires: kxmlgui-devel >= %{kf5_version}
BuildRequires: libSM-devel
BuildRequires: plasma-framework-devel >= %{kf5_version}
BuildRequires: plasma5-workspace-devel >= 5.23
BuildRequires: cmake(KDecoration2) >= 5.23
BuildRequires: plasma5-workspace-devel >= 5.27
BuildRequires: cmake(KDecoration2) >= 5.27
BuildRequires: cmake(Qt5Core) >= %{qt5_version}
BuildRequires: cmake(Qt5DBus) >= %{qt5_version}
BuildRequires: cmake(Qt5Quick) >= %{qt5_version}
@@ -54,7 +56,7 @@ one's panels. This plasmoid is coming from Latte land, but it can also
support Plasma panels.
%prep
%autosetup
%autosetup -p1
%build
%cmake_kf5 -d build
@@ -69,7 +71,7 @@ support Plasma panels.
%{_kf5_qmldir}/org/kde/appletdecoration
%dir %{_kf5_plasmadir}/plasmoids
%{_kf5_plasmadir}/plasmoids/org.kde.windowbuttons
%if %{pkg_vcmp plasma-framework-devel < 5.84}
%if %{pkg_vcmp cmake(KF5Plasma) < 5.84} || %{pkg_vcmp cmake(KF5Plasma) >= 5.89}
%{_kf5_servicesdir}/plasma-applet-org.kde.windowbuttons.desktop
%endif
%{_kf5_appstreamdir}/org.kde.windowbuttons.appdata.xml

52
kdecoration-5.27.patch Normal file
View File

@@ -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;