Bug 411543

Summary: Background mode: no keyboard focus after opening window
Product: [Applications] konsole Reporter: tguen <tguenther.dev>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: bergentroll, gyordanov, kde, nate, sender
Priority: NOR    
Version: 19.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description tguen 2019-09-03 00:26:10 UTC
Running 19.08 in background mode, pressing the keyboard shortcut to open the window and immediately typing does not result in text appearing in the terminal. I have to either click the window with the mouse or alt-tab to another window and back before konsole recognizes keyboard input. This bug did not occur in 19.04.
Comment 1 tguen 2019-12-18 00:40:05 UTC
*** Bug 415298 has been marked as a duplicate of this bug. ***
Comment 2 Anton Karmanov 2020-03-27 05:03:44 UTC
Possible fix has been added:
https://invent.kde.org/kde/konsole/-/merge_requests/71
Comment 3 Kurt Hindenburg 2020-04-14 12:00:17 UTC
Git commit 79ad055855cfaa578e9e49a39ca335e9a30a20b7 by Kurt Hindenburg, on behalf of Anton Karmanov.
Committed on 14/04/2020 at 11:56.
Pushed by hindenburg into branch 'release/20.04'.

Add ViewSplitter::showEvent()

New ViewSplitter showEvent() method override sets focus proxy before
showing the MainWindow. It is userful for background mode to keep active
terminal focused.
(cherry picked from commit b741e9cd67e9c7fd619f13ffccd6a90cb5dc5122)

M  +5    -1    src/ViewSplitter.cpp
M  +1    -0    src/ViewSplitter.h

https://invent.kde.org/kde/konsole/commit/79ad055855cfaa578e9e49a39ca335e9a30a20b7