Bug 411543 - Background mode: no keyboard focus after opening window
Summary: Background mode: no keyboard focus after opening window
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 19.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 415298 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-09-03 00:26 UTC by tguen
Modified: 2020-04-14 12:02 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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