diff --git a/inputmethod-properly-report-that-its-not-visible.patch b/inputmethod-properly-report-that-its-not-visible.patch new file mode 100644 index 0000000..b329035 --- /dev/null +++ b/inputmethod-properly-report-that-its-not-visible.patch @@ -0,0 +1,27 @@ +From 07f6241cd73009c953d7467f5db917b332f9c125 Mon Sep 17 00:00:00 2001 +From: Aleix Pol +Date: Mon, 20 Mar 2023 21:21:50 +0100 +Subject: [PATCH] inputmethod: Properly report that it's not visible + +Window::isShown only checks that it's not hidden, in this case it's not +that it's hidden it's that it's neither shown or hidden. Take the +readyForPainting attribute into account. +--- + src/inputmethod.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp +index 8e256c38221..f2e33a10a06 100644 +--- a/src/inputmethod.cpp ++++ b/src/inputmethod.cpp +@@ -946,7 +946,7 @@ void InputMethod::updateModifiersMap(const QByteArray &modifiers) + + bool InputMethod::isVisible() const + { +- return m_panel && m_panel->isShown(); ++ return m_panel && m_panel->isShown() && m_panel->readyForPainting(); + } + + bool InputMethod::isAvailable() const +-- +GitLab diff --git a/kwin.spec b/kwin.spec index 1c8770b..9f700d2 100644 --- a/kwin.spec +++ b/kwin.spec @@ -17,7 +17,7 @@ Name: kwin Version: 5.27.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Window manager # all sources are effectively GPLv2+, except for: @@ -37,6 +37,8 @@ URL: https://userbase.kde.org/KWin Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz ## upstream patches +# https://invent.kde.org/plasma/kwin/-/merge_requests/3844/diffs +Patch1: inputmethod-properly-report-that-its-not-visible.patch ## proposed patches @@ -361,6 +363,10 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||: %changelog +* Mon Mar 20 2023 Marc Deop i Argemí - 5.27.3-2 +- Add patch from upstream +- Fixes BZ#2180100 + * Tue Mar 14 2023 Marc Deop i Argemí - 5.27.3-1 - 5.27.3