<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 25, 2014 at 1:17 PM, Martin Gräßlin <span dir="ltr"><<a href="mailto:mgraesslin@kde.org" target="_blank">mgraesslin@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I spent some time on screen management in KWin today and got it to the point<br>
where it doesn't fail any more no matter what I try. So please everyone using<br>
multiple screens and especially dynamically plug in and out, please give a try<br>
to the patch set in [1]. Please ensure to have latest master as it contains a<br>
crash fix for a crash triggered by the patch set.<br>
<br>
Short summary of the changes in the patch set:<br>
* uses XRandR instead of QDesktopWidget<br>
* uses KWin internal information about overall screen geometry instead of<br>
relying on the information in the X11 screen structure.<br>
<br>
The second part is the code I added today. My testing showed that unplugging a<br>
screen gives us proper XRandR events so KWin's internal is up to date, but the<br>
X11 screen information is wrong. So when we partially used the one and<br>
partially the other the rendering was just horribly broken. Now it's all based<br>
on the KWin internal information and I couldn't get the rendering broken any<br>
more.<br>
<br>
When changing screens please be patient. It takes time to settle the changes.<br>
Especially plasmashell takes quite some time on my system to render correctly<br>
again.<br>
<br>
I hope that it doesn't fail for others and we can get the changes in to<br>
improve the situation.<br>
<br>
Cheers<br>
Martin<br>
<br>
[1] <a href="https://git.reviewboard.kde.org/r/117614/" target="_blank">https://git.reviewboard.kde.org/r/117614/</a></blockquote><div><br></div><div>Hi Martin,</div><div>I just applied your patch, seems to work so far. I'll tell you if it breaks :D.</div><div><br></div><div>Aleix</div></div></div></div>