On Wayland never try to create a WindowPixmap from an X11 pixmap
ClosedPublic

Authored by graesslin on Jun 26 2016, 2:29 PM.

Details

Summary

Our Wayland compositors cannot composite an X11 pixmap. Thus even
if we succeed in creating the pixmap, the changes would not get to
the scene. The code allowed for situation where a surface is not yet
set to fall back to the X11 code path. This can happen for XWayland
windows.

Test Plan

Crash in xclipboardsynctest without the change

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4739.Jun 26 2016, 2:29 PM
graesslin retitled this revision from to On Wayland never try to create a WindowPixmap from an X11 pixmap.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: Plasma on Wayland, KWin.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJun 26 2016, 2:29 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Jun 28 2016, 3:28 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Jun 28 2016, 3:28 PM
This revision was automatically updated to reflect the committed changes.