Stress testing KWin's screen handling

Aleix Pol aleixpol at kde.org
Tue Nov 25 12:37:22 UTC 2014


On Tue, Nov 25, 2014 at 1:17 PM, Martin Gräßlin <mgraesslin at kde.org> wrote:

> Hi all,
>
> I spent some time on screen management in KWin today and got it to the
> point
> where it doesn't fail any more no matter what I try. So please everyone
> using
> multiple screens and especially dynamically plug in and out, please give a
> try
> to the patch set in [1]. Please ensure to have latest master as it
> contains a
> crash fix for a crash triggered by the patch set.
>
> Short summary of the changes in the patch set:
> * uses XRandR instead of QDesktopWidget
> * uses KWin internal information about overall screen geometry instead of
> relying on the information in the X11 screen structure.
>
> The second part is the code I added today. My testing showed that
> unplugging a
> screen gives us proper XRandR events so KWin's internal is up to date, but
> the
> X11 screen information is wrong. So when we partially used the one and
> partially the other the rendering was just horribly broken. Now it's all
> based
> on the KWin internal information and I couldn't get the rendering broken
> any
> more.
>
> When changing screens please be patient. It takes time to settle the
> changes.
> Especially plasmashell takes quite some time on my system to render
> correctly
> again.
>
> I hope that it doesn't fail for others and we can get the changes in to
> improve the situation.
>
> Cheers
> Martin
>
> [1] https://git.reviewboard.kde.org/r/117614/


Hi Martin,
I just applied your patch, seems to work so far. I'll tell you if it breaks
:D.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141125/15a1d63e/attachment.html>


More information about the Plasma-devel mailing list