From 14a4a39710a587feb436dbcd80211db8664e1298c2cdf5ff0e20d720cda58313 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Sun, 26 Sep 2021 12:13:51 +0000 Subject: [PATCH] - Add patch to automatically set a default button again (kde#438994): * 0001-Restore-auto-default-button-behavior.patch OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=346 --- ...Restore-auto-default-button-behavior.patch | 35 +++++++++++++++++++ breeze.changes | 6 ++++ breeze.spec | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 0001-Restore-auto-default-button-behavior.patch diff --git a/0001-Restore-auto-default-button-behavior.patch b/0001-Restore-auto-default-button-behavior.patch new file mode 100644 index 0000000..5af27fb --- /dev/null +++ b/0001-Restore-auto-default-button-behavior.patch @@ -0,0 +1,35 @@ +From f763f27ebf3bbb21235ab3df0f7b9ef035cc71b5 Mon Sep 17 00:00:00 2001 +From: Kai Uwe Broulik +Date: Wed, 8 Sep 2021 12:50:10 +0200 +Subject: [PATCH] Restore auto default button behavior + +A style shouldn't mess with clients like this, especially +if it behaves different from literally any other QStyle out +there, and breaks decades of muscle memory. + +This partially reverts 00693ee5e715167d61d0014b9eb75ab3dbd31b51 + +BUG: 438994 + + +(cherry picked from commit c5171cf003aa8dd0028a14e5bba99002941b729e) +--- + kstyle/breezestyle.cpp | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp +index a5f68e88..a98b1e62 100644 +--- a/kstyle/breezestyle.cpp ++++ b/kstyle/breezestyle.cpp +@@ -413,8 +413,6 @@ namespace Breeze + } + else if ( qobject_cast (widget) ) { + widget->setAttribute(Qt::WA_StyledBackground); +- } else if ( auto btn = qobject_cast (widget) ) { +- btn->setAutoDefault(false); + } else if ( auto spbx = qobject_cast (widget) ) { + spbx->setAlignment(Qt::AlignCenter); + } +-- +2.33.0 + diff --git a/breeze.changes b/breeze.changes index 603d3bf..c10f9e6 100644 --- a/breeze.changes +++ b/breeze.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Sep 26 12:12:47 UTC 2021 - Fabian Vogt + +- Add patch to automatically set a default button again (kde#438994): + * 0001-Restore-auto-default-button-behavior.patch + ------------------------------------------------------------------- Thu Sep 16 13:04:44 UTC 2021 - Fabian Vogt diff --git a/breeze.spec b/breeze.spec index 460d947..4312045 100644 --- a/breeze.spec +++ b/breeze.spec @@ -33,6 +33,8 @@ Source: https://download.kde.org/unstable/plasma/%{version}/breeze-%{ver Source1: https://download.kde.org/unstable/plasma/%{version}/breeze-%{version}.tar.xz.sig Source2: plasma.keyring %endif +# PATCH-FIX-UPSTREAM +Patch1: 0001-Restore-auto-default-button-behavior.patch BuildRequires: cmake >= 3.16 BuildRequires: extra-cmake-modules >= 0.0.13 BuildRequires: fdupes