Don't set the video size using the data coming from xdp, instead use the
data coming from pipewire, which is what matters.
Also make sure setVideoSize is called before using the buffer rather
than after.
It works by grabbing the QDesktopWidget, which doesn't work in Qt6 since there is no QDesktopWidget.
In practice it only really works on xcb anyway, for which we have a dedicated plugin
Direct wayland paths to start streams for windows and outputs became
deprecated when xdg-portal support was added and this code is therefore
unused.
Creating virtual monitors via the direct approach remains in use.
Actually remove the WId member from the abtract framebuffer class and use the member in xcbframebuffer
qtframebuffer also uses the WId so add a member there
We ignore the name/description and only display the id in the ui.
To make sure the is are the same, the OUTPUT_NAME cmake target property is set.
Otherwise, we would need a json file with the KPlugin object and then the id in it, which is
unnecessary work for sth. that can be done in a single line.
Having the file base name and id differ is also discouraged, see https://phabricator.kde.org/T14499
It is possible to have zero data in the buffer, but have the
buffer to carry metadata about the mouse cursor. In that case
we should try to process the cursor metadata before we discard
the buffer for not having any data.
It implements a KWin protocol that is oriented towards serving a virtual
display specifically.
It requests KWin a stream that will act as a monitor that we can feed
into remote clients.
WId is irrelevant on Wayland and it doesn't fully describe everything we
might be doing, we can pass a variant map to make sure all necessary
information is provided.
When we allocate the locally mapped texture size, use the announced
stride (aka bytes per line) instead of the texture width. Otherwise we
might overflow and crash eventually.
BUG: 438815
The service types are deprecated and not needed anymore when using the
JSON metadata. Instead install the different plugin types into dedicated
dirs, this way there is not additional filtering needed.
This reverts commit eb1dc503bd.
Revert "Add dma-buf defines to build dma-buf support everywhere"
This reverts commit 8f0de62401.
Revert "Drop support for PipeWire 0.2"
This reverts commit 028ac099ea.
These were accidentally pushed without review. They were meant
to be pushed to my fork instead.