From f5f1f6ceb49d0d699675a98a8556ff16f9ec9525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Tue, 2 Jan 2018 21:51:18 +0100 Subject: [PATCH] Don't send keyboard events to QWindows which have outputOnly property set Summary: PlasmaCore.Dialog has a property outputOnly. This is for example used in KWin's OnScreenNotification. If that property is set KWin should not send any key events to it, just like for windows with _q_showWithoutActivating. BUG: 388112 Test Plan: Not yet Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #plasma Differential Revision: https://phabricator.kde.org/D9618 --- input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input.cpp b/input.cpp index 93daf851c7..413ef705b6 100644 --- a/input.cpp +++ b/input.cpp @@ -819,6 +819,9 @@ class InternalWindowEventFilter : public InputEventFilter { if (w->property("_q_showWithoutActivating").toBool()) { continue; } + if (w->property("outputOnly").toBool()) { + continue; + } found = w; break; }