<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: kwin, plasma-devel.
</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/D8661" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Commit <a href="https://phabricator.kde.org/R108:5d9027b110be7510a75daa789402b83c106a4164" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">5d9027b110</a> introduced a regression in TabBox by using the generic<br />
framework inside KWin to test for same application. What I did not<br />
consider was that the code in TabBox was "broken by design". It didn't<br />
use the generic check as that is too strict and considers windows from<br />
different processes as not belonging to the same application. But this<br />
is not wanted in the case of TabBox.</p>
<p>On the other hand the change itself is an improvement to also support<br />
Wayland in a better way and not have special handling situations. Thus<br />
just reverting would not help.</p>
<p>Instead this change addresses the problem by extending the internal API<br />
and to allow more adjustements. So far there was already an<br />
"active_hack" boolean flag. This is extended to proper flags with an<br />
additional flag to allow cross application checks.</p>
<p>The checks in Client which would filter out different applications check<br />
for this flag and are skipped if set. In addition ShellClient also adds<br />
support for this flag and compares for the desktop file name.</p>
<p>Thus we get in TabBox the same behavior as before with the advantage of<br />
having a better shared code base working on both X11 and Wayland.</p>
<p>BUG: 386043<br />
FIXED-IN: 5.11.3</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Started two kwrite processes on X11, clicked new in one of them,<br />
used Alt+` and verified that there are three windows shown.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>belong-to-same-application-5.11</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8661" rel="noreferrer">https://phabricator.kde.org/D8661</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>abstract_client.cpp<br />
abstract_client.h<br />
activation.cpp<br />
client.cpp<br />
client.h<br />
group.cpp<br />
shell_client.cpp<br />
shell_client.h<br />
tabbox/tabbox.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma<br /><strong>Cc: </strong>plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>