Do not hard runtime depend on X11 in composite startup
ClosedPublic

Authored by graesslin on Aug 24 2017, 8:47 AM.

Details

Summary

The compositor needs to claim the X11 compositor selection and redirect
the X11 windows. This of course only makes sense when having X11 support.

This change refactors the code so that if X11 support is missing the code
is not executed, but as soon as X11 support comes available the selection
gets claimed.

Also if the connection goes away the selection is deleted, though it
might be that this does not work as KSelectionOwner might call into xcb
and cause a crash. This needs to be tested once we start supporting
XWayland going away.

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 created this revision.Aug 24 2017, 8:47 AM
Restricted Application added a project: KWin. · View Herald TranscriptAug 24 2017, 8:47 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
This revision was automatically updated to reflect the committed changes.