romangg added inline comments.
> romangg wrote in drm_output.h:139
> Is it only a friend class to access `m_waylandOutput.data()`? In this case
> better create a getter for it in DrmOutput.
> Or better do the `passBuffer` call in `DrmBackend::present` and give instead
> of the DrmOutput the `KWayland::Server::OutputInterface` from there to
Regarding the "better" part: you would need the `m_remoteaccessManager` in
`DrmBackend`. Only with EGL/GBM this would then be set. I.e. in QPainter
`DrmBackend` would ignore it.
But that's maybe a bit too much (also you would need to change the buffer cast
in passBuffer). So better just add a getter in DrmOutput.
To: Kanedias, graesslin, davidedmundson, romangg, #kwin
Cc: jgrulich, romangg, ngraham, alexeymin, aacid, kwin, #kwin, davidedmundson,
plasma-devel, schernikov, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed,
hardening, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein