Commit f266a7cf authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

Only allow access to zwp_input_* to the input method

It is a very privacy-concerning component, so we will treat it
As it is, it will have to come from the --inputmethod argument. We can
work on some UI later on to select which keyboards are available.
parent 3733e3e7
......@@ -270,6 +270,9 @@ public:
const QSet<QByteArray> interfacesBlackList = {"org_kde_kwin_remote_access_manager", "org_kde_plasma_window_management", "org_kde_kwin_fake_input", "org_kde_kwin_keystate", "zkde_screencast_unstable_v1"};
const QSet<QByteArray> inputmethodInterfaces = { "zwp_input_panel_v1", "zwp_input_method_v1" };
QSet<QString> m_reported;
bool allowInterface(KWaylandServer::ClientConnection *client, const QByteArray &interfaceName) override {
......@@ -277,6 +280,10 @@ public:
return true;
if (client != waylandServer()->inputMethodConnection() && inputmethodInterfaces.contains(interfaceName)) {
return false;
if (!interfacesBlackList.contains(interfaceName)) {
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment