Commit b741e9cd authored by Anton Karmanov's avatar Anton Karmanov
Browse files

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.

BUG: 411543
parent db15532f
......@@ -363,4 +363,8 @@ void Konsole::ViewSplitter::dropEvent(QDropEvent* ev)
}
}
void Konsole::ViewSplitter::showEvent(QShowEvent *)
{
// Fixes lost focus in background mode.
setFocusProxy(activeSplitter()->activeTerminalDisplay());
}
......@@ -125,6 +125,7 @@ protected:
void dragMoveEvent(QDragMoveEvent *ev) override;
void dragLeaveEvent(QDragLeaveEvent * event) override;
void dropEvent(QDropEvent *ev) override;
void showEvent(QShowEvent *) override;
Q_SIGNALS:
void terminalDisplayDropped(TerminalDisplay *terminalDisplay);
......
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