<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, VDG.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />broulik 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/D24208">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The notification popup typically gets in the way of the system tray popup.<br />
In case it would cover a Plasma dialog, hide the notification popup.<br />
It doesn't specifically check for System Tray but then it will also get out of the way of your calendar and other widgets you might have placed in the respective corner.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Both genius and evil.<br />
Still surprised by how little code it is, especially that on QML side a simple binding is enough.<br />
The change from <tt style="background: #ebebeb; font-size: 13px;">var</tt> to <tt style="background: #ebebeb; font-size: 13px;">let</tt> is for sane scoping, so that the <tt style="background: #ebebeb; font-size: 13px;">dialog</tt> we refer to is correct one, with <tt style="background: #ebebeb; font-size: 13px;">var</tt> scoping it would always be the one from the last iteration of the loop</p>

<p><a href="https://phabricator.kde.org/F7426329" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F7426329: ba96db11-fd22-4bb0-b1ef-f042fa3557b3.mp4</a><br />
Moving the systray popup with Alt+left click is just to demonstrate the dodging capabilities of the popup ;)</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Opened calendar, popup hid</li>
<li class="remarkup-list-item">Also hides when an Alternatives dialog covers it</li>
<li class="remarkup-list-item">does not hide for panel controller</li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">Closing notification and interacting with them, especially context menu (as it opens a new window) still works fine</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24208">https://phabricator.kde.org/D24208</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/notifications/CMakeLists.txt<br />
applets/notifications/notificationapplet.cpp<br />
applets/notifications/notificationapplet.h<br />
applets/notifications/package/contents/ui/global/Globals.qml</div></div></div><br /><div><strong>To: </strong>broulik, Plasma, VDG<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>