<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added a reviewer: Konsole.<br />Restricted Application added a project: Konsole.<br />Restricted Application added a subscriber: konsole-devel.<br />ahmadsamir requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13217">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Previously the code enabled sending emulated up/down key press events to<br />
the terminal only if the current screen is the alternate buffer. The<br />
problem with this approach is that when detaching a tab/view, a new<br />
TerminalDisplay is constructed and _isPrimaryScreen is intialised to<br />
true even though the current screen in the detached tab is the alternate<br />
one.</p>

<p>Since the Session is preserved when detaching a tab, move that bit of<br />
code to Session, and change the condition in TerminalDisplay<br />
accrodingly. Less/redundant code in TerminalDisplay and one less<br />
connection.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>alternate-buffer-scrolling (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13217">https://phabricator.kde.org/D13217</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/Session.cpp<br />
src/Session.h<br />
src/SessionController.cpp<br />
src/TerminalDisplay.cpp<br />
src/TerminalDisplay.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Konsole<br /><strong>Cc: </strong>konsole-devel, herrold, ngraham, maximilianocuria, hindenburg<br /></div>