[plasma/kwin] src: Announce privileged protocols to input method
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5bc7c91394e64e80112b920fe7e082cbca377b60 by Vlad Zahorodnii.
Committed on 21/07/2026 at 06:16.
Pushed by vladz into branch 'master'.
Announce privileged protocols to input method
fcitx can run in a sandbox and it wants the plasma window management
protocol to get the information about the active window.
M +3 -1 src/wayland_server.cpp
https://invent.kde.org/plasma/kwin/-/commit/5bc7c91394e64e80112b920fe7e082cbca377b60
diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp
index b253f70eca2..f89ab82d137 100644
--- a/src/wayland_server.cpp
+++ b/src/wayland_server.cpp
@@ -147,7 +147,9 @@ public:
return false;
}
- if (client != waylandServer()->inputMethodConnection() && inputmethodInterfaces.contains(interfaceName)) {
+ if (client == waylandServer()->inputMethodConnection()) {
+ return true;
+ } else if (inputmethodInterfaces.contains(interfaceName)) {
return false;
}