From 9ffcb3178cea8b06fdf964fd05cf28319d1ffc8b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 13 Jun 2016 19:02:38 +0200 Subject: [PATCH] force focus to the panel on AcceptingInputStatus when the containment (or an applet in it) gains the state Plasma::AcceptingInputStatus force the focus to the panel window, restoring the behavior of Plasma4 BUG: 364276 --- shell/panelview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 4239419e2..7dc15814b 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -1043,6 +1043,8 @@ void PanelView::statusChanged(Plasma::Types::ItemStatus status) { if (status == Plasma::Types::NeedsAttentionStatus) { showTemporarily(); + } else if (status == Plasma::AcceptingInputStatus) { + KWindowSystem::forceActiveWindow(winId()); } else { restoreAutoHide(); }