Introduce an x11/standalone platform plugin for use in kwin_x11
ClosedPublic

Authored by graesslin on Apr 8 2016, 8:38 AM.

Details

Summary

Move the x11 plugin sources into a x11/windowed directory

Preparation step for having two x11 backends: the windowed for Wayland
and a standalone for kwin_x11.

Add a very basic x11/standalone platform plugin

The plugin does not much. It's the most basic plugin we can have to
be loaded from kwin_x11.

Unlike the wayland platform plugins it gets installed to:
org.kde.kwin.platforms

Load and init the KWinX11Platform plugin in main_x11

kwin_x11 now also loads a platform plugin and initializes it.
It doesn't do much except loading it and init it. Though it's also
set up to continue startup only when screens are queried.

Move XRandrScreens to the x11/standalone plugin

By moving XRandrScreens the creation of screens gets simplified a lot
as there is no need to have windowing system specific init code. It all
just goes through the platform.

This also marks the point where the first X11 specific code is removed
from kwin_wayland.

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 3212.Apr 8 2016, 8:38 AM
graesslin retitled this revision from to Introduce an x11/standalone platform plugin for use in kwin_x11.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: Plasma, sebas.
Restricted Application added a project: Plasma. · View Herald TranscriptApr 8 2016, 8:38 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Apr 8 2016, 1:03 PM
sebas edited edge metadata.

Looks sane to me.

This revision is now accepted and ready to land.Apr 8 2016, 1:04 PM
This revision was automatically updated to reflect the committed changes.