Skip to content

drm: Use KScreen's json files to set up the initial output composition

Aleix Pol Gonzalez requested to merge work/just-one-screen-config into master

So far we had a composition setup within kwinrc and kscreen. This produces flickering sometime and makes the state a bit more flimsy. This patch changes the kwin's behaviour to use the files produced by kscreen which are anyways available down the line.

THis simplifies our behaviour down to just one format that we write to and feed from. This also allows us to leverage it further by using this format for default setups (which consist in the right file in ~/.local/share/kscreen).


Marking WIP because we are copying code over. We could have this new code in libkscreen (or even a libkscreen_lite without all the backend stuff). Still before I start looking into it I'd prefer to discuss it a bit. Also note that the code that creates these json files is in kscreen now, not libkscreen.

That said, as is, this works.

Biggest motivation here is that I'd like to be able to say "export this set up to sddm" which would copy the current setup to sddm's .local/share and then we'd set up our displays correctly there too.

cc #32 (closed)

Edited by Vlad Zahorodnii

Merge request reports