<table><tr><td style="">jnoack created this revision.<br />jnoack added a reviewer: Konsole.<br />jnoack added a project: Konsole.<br />jnoack 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/D10983" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I noticed this issue while working on another feature. When there are multiple tabs inside Konsole and one is dragged outside to create a detached view<br />
the content of the new Konsole window is initially empty until a resize or click happens.</p>

<p><a href="https://phabricator.kde.org/F5737102" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5737102: Screenshot_20180303_013645.png</a></p>

<p><a href="https://phabricator.kde.org/F5737103" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">F5737103: Screenshot_20180303_013718.png</a><br />
(Notice how there should be the prompt)</p>

<p>I couldn't figure out the the exact cause, but passing a different<br />
size in Application.cpp:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">void Application::detachView(Session *session)
{
    ...
    // When detaching a view, the size of the new window should equal the
    // size of the source window
    Session *newsession = window->viewManager()->activeViewController()->session();
    newsession->setSize(session->size()); //<---- e.g QSize(400, 400)</pre></div>

<p>fixes the issue at first glance. Then I looked further into what setSize does and eventually landed inside TerminalDisplay. After some playing around it worked by calling updateImage instead of updateGeometry.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Detach a tab</li>
<li class="remarkup-list-item">Now Visible</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10983" rel="noreferrer">https://phabricator.kde.org/D10983</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/TerminalDisplay.cpp</div></div></div><br /><div><strong>To: </strong>jnoack, Konsole<br /><strong>Cc: </strong>ngraham, hindenburg<br /></div>