List of modules/libs that will need any work to run on Wayland:
Some KCM Modules need porting or at least adding runtime checks to avoid running some code
Already has HAVE_X11 so compilation is already optional. It seems that the code is no longer needed with Qt5 since we have our own QPT.
Uses krdb, already has HAVE_X11 for dpi configurationj
Rewrite all this with abstraction so we can support both, X11 and Wayland
Needs abstraction, and implement wl_cursor_* backend for Wayland.
These settings belong now to the compositor (KWin), so we need to sort things out over there.
Needs port tohttp://xkbcommon.org/
Drop Xft support and move to fontconfig only
Needs to be implemented somehow inside KWin, since the compositor is the only one that has access to the mouse.
Some calls to X api has to be made platform specific, it has a lot of #ifdef Q_WS_X11 already. Maybe also add a module for Wayland information.
Clipboard is handled by the compositor (KWin), we might need to wait to port klipper to it
Probably won't need any porting once krunner in plasma2 is released. We might need a way of making sure it is placed centered on the screen since Apps can't decide position on Wayland.
If screenlocker is split, we will only need to implement a new session management api based on dbus.
Make the X11 platform dependent, they do not make sense in Wayland (x11 memory usage)
Needs platform abstraction and then talk to KWin
Needs port to drm and probably go to KWin
Port to drm/kms and probably put it in KWin