<table><tr><td style="">valeriymalov updated this revision to Diff 15251.<br />valeriymalov added a comment.
</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/D3484" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>So I've decided to revisit this and ended up deleting most of the code, dunno if I went overboard here.</p>

<p>Replaced resize and setGeometry calls with sizeHint() for the window. I've also removed call to minimumSizeHint() that as far as I understand calculates minimum size hint, but I don't think we need it anymore since sizeHint is set.</p>

<p>Got rid of code that saves/restores & applies "keep above" to avoid further interference with WM, since Kwin can do that on it's own.</p>

<p>Removed timer that was used to set window size and moved dbus registration from it to constructor. I know we use dbus to close this window and it doesn't break that, but otherwise I don't understand why dbus registration was timed, systemmonitor doesn't really export anything special.</p>

<p>So now by default the dialog opens centered on current display on it's own for some reason, which is close to original/intended behavior, and should be more manageable by kwin.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D3484?vs=8469&id=15251" rel="noreferrer">https://phabricator.kde.org/D3484?vs=8469&id=15251</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3484" rel="noreferrer">https://phabricator.kde.org/D3484</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>systemmonitor/ksystemactivitydialog.cpp<br />
systemmonitor/ksystemactivitydialog.h</div></div></div><br /><div><strong>To: </strong>valeriymalov, Plasma: Workspaces, aacid, mart<br /><strong>Cc: </strong>aacid, graesslin, plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>