You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kwin/inputmethod-properly-report...

28 lines
917 B

From 07f6241cd73009c953d7467f5db917b332f9c125 Mon Sep 17 00:00:00 2001
From: Aleix Pol <aleixpol@kde.org>
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