<table><tr><td style="">printesoi 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/D29569">View Revision</a></tr></table><br /><div><div><p>I would like to add some more details about my setup: I have a laptop with a 4K display and I use a second 4K external monitor. I have enabled the 200%  scalling and <tt style="background: #ebebeb; font-size: 13px;">xrandr -q | grep -E '\bconnected' </tt>gives</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);">DP-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 609mm x 349mm
DP-2 connected primary 3840x2160+0+2160 (normal left inverted right x axis y axis) 344mm x 193mm</pre></div>

<p>ie: the external monitor is set at 0,0 (on top) and the laptop monitor is set at 0,2160 (on bottom)</p>

<p>I created a minimal project that shows the problem in this setup <a href="https://github.com/printesoi/kwindowsystem-workarea-test" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/printesoi/kwindowsystem-workarea-test</a> and without the patch the results I get from the code above is (I have a 32px panel on the bottom of the primary (laptop) screen):</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);">QRect KWindowSystemPrivateX11::workArea(int desktop): QRect(0,0 1920x2128)
QRect KWindowSystemPrivateX11::workArea(const QList<WId> &exclude, int desktop): QRect(0,0 960x1588)</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R278 KWindowSystem</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29569">https://phabricator.kde.org/D29569</a></div></div><br /><div><strong>To: </strong>printesoi, davidedmundson, KWin, zzag<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>