1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00
Commit Graph

9 Commits

Author SHA1 Message Date
Nicolas Fella
606e1a53d3 Convert license statements to SPDX 2024-08-08 11:02:04 +00:00
David Redondo
953cc4218b Encode supported platforms in the plugin metdata
This way we don't load pipewire on X, or xcb on Wayland regardless
if they are configured as preferred or not.
2023-02-09 07:54:39 +00:00
Nicolas Fella
4169a9f50a Don't pass unused window ids around
The wid is only relevant for the xcb framebuffer

We can just query it there, no need to pass it around everywhere
2022-08-03 22:00:16 +02:00
Alexander Lohnau
fbf4fcbce0 Derive plugin id from filename, clean up json files
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
2022-04-23 19:18:18 +00:00
Alexander Lohnau
c7ee6f1e0e Drop empty deconstructors of plugins
We have one defined in the base class, consequently we do not violate the rule of life when removing the empty ones
2022-04-23 19:18:18 +00:00
Alexander Lohnau
0d8cc44ec2 Simplify plugin declaration using K_PLUGIN_CLASS_WITH_JSON
This way we do not need to take care of setting the factory name and typing out the registration manually
2022-04-23 19:18:18 +00:00
Aleix Pol
608762c7ac Allow passing plugin backends some arguments
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.
2021-10-29 14:05:34 +00:00
Yuri Chornoivan
c5fc5fc68e Fix minor EBN issues and typos 2018-10-14 20:54:39 +03:00
Alexey Min
b2cb3e8204 Implement XCB framebuffer plugin (port from x11)
Previously used x11 plugin does not compile with Qt5, because Qt5 does
not use Xlib, it uses xcb. Rewrite screen capture plugin from Xlib to
xcb.

I made xcb libs compile required dependency, but availability of X
shared memory extension is checked at runtime. It is used to effectively
get image pixels data, instead of transfering 8Mb over the wire. Xdamage
is used to limit image getting operations only within actually changed
rectangles of screen.

BUG: 377998

Tested on single-monitor system and dual-monitor, where primary monitor
does not start at (0,0) coordinate. Image transfer works fine.
Dual-monitor only has problems with receiving mouse cursor position and
clicks, but this should be fixed outside of framebuffer plugin.

Differential Revision: https://phabricator.kde.org/D5211
2017-06-15 23:21:58 +02:00