<table><tr><td style="">graesslin created this revision.<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/D6562" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>By allowing panels between screens in 5.8 to have a strut we created a<br />
"regression" in KWin. KWin always was wrong, just we didn't notice as<br />
neither Plasma nor previously Kicker set a strut on panels between shared<br />
screen edges.</p>

<p>The strut is created from the edge of the overall screen setup. This<br />
means a panel on the left edge of a screen on the right has the strut<br />
starting from the left screen. KWin uses the strut to restrict the move<br />
resize area: a window decoration is not allowed to go below a strut. Thus<br />
it becomes impossible to move the window from the right to the left<br />
screen.</p>

<p>This change tries to solve this problem by only restricting the move area<br />
on the screen the window with the strut is on. E.g. if the window is on<br />
the right screen, the left screen is not affected. Thus it's possible<br />
again to move a window from one screen to the other as the added test<br />
case shows.</p>

<p>Unfortunately there are still corner cases where this won't work<br />
correctly. If the window is on both screens this won't work. It is also a<br />
rather heavy change for KWin and thus it's targeted for master and not<br />
for the 5.10 or the 5.8 branch. If we notice that the patch works well<br />
and doesn't create further issues, it should be considered for<br />
backporting.</p>

<p>BUG: 371199<br />
CCBUG: 370510<br />
FIXED-IN: 5.11</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Added test case</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>restricted-move-area-multiple-panels</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6562" rel="noreferrer">https://phabricator.kde.org/D6562</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/integration/struts_test.cpp<br />
geometry.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma<br /><strong>Cc: </strong>plasma-devel, kwin, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>