diff --git a/src/SessionController.cpp b/src/SessionController.cpp --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -206,6 +206,8 @@ connect(_session.data(), &Konsole::Session::getBackgroundColor, this, &Konsole::SessionController::sendBackgroundColor); + connect(_session, &Konsole::Session::primaryScreenInUse, view, &Konsole::TerminalDisplay::usingPrimaryScreen); + _allControllers.insert(this); // A list of programs that accept Ctrl+C to clear command line used diff --git a/src/TerminalDisplay.h b/src/TerminalDisplay.h --- a/src/TerminalDisplay.h +++ b/src/TerminalDisplay.h @@ -621,6 +621,15 @@ */ void setUsesMouse(bool on); + /** + * Sets _isPrimaryScreen depending on which screen is currently in + * use, primary or alternate + * + * @param use Set to @c true if the primary screen is in use or to + * @c false otherwise (i.e. the alternate screen is in use) + */ + void usingPrimaryScreen(bool use); + void setBracketedPasteMode(bool on); /** @@ -905,6 +914,7 @@ bool _showTerminalSizeHint; bool _bidiEnabled; bool _mouseMarks; + bool _isPrimaryScreen; bool _bracketedPasteMode; QPoint _iPntSel; // initial selection point diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -3090,7 +3090,6 @@ void TerminalDisplay::usingPrimaryScreen(bool use) { _isPrimaryScreen = use; - return; } void TerminalDisplay::setBracketedPasteMode(bool on)