Goals:
- Allow building a full KWin as Wayland server package without any X dependency.
- Allow building a full KWin as X11 window manager package without any Wayland dependency.
- Make XWayland optional to KWin Wayland at build time.
Plan:
- Split out Wayland only parts in separate lib: D24199 ...
- Split out X only parts in other lib.
- Until there are only common parts in the lib we had before.
- Then see if we can refactor these common parts such that only the two separate libs remain, for example by creating an XWayland lib/plugin/something.