Antti Savolainen
c521740404
Format project
...
Command used to format: git ls-files | grep -E '\.(cpp|h|hpp|c)$' | xargs clang-format -i --style file
2026-04-25 06:49:43 +00:00
Kunda Ki
ff96bc1c62
Fix various typos
...
Fixes misc. typos
2025-09-28 01:35:35 +03:00
Midori Kochiya
caa11fb498
pw: fix memcpy size
2025-03-19 23:10:43 +00:00
David Redondo
a73a81d38a
Generate wayland code with PRIVATE_CODE
2024-08-14 11:54:30 +02:00
Nicolas Fella
606e1a53d3
Convert license statements to SPDX
2024-08-08 11:02:04 +00:00
Prajna Sariputra
f071ad4eba
wayland: Add support for the persistence feature of the remote desktop portal
...
Same idea as https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/639 , v2 of the remote desktop portal can accept and return a restore token that we can use to avoid constantly asking the user for permission every time Krfb is started.
Note that there's a bug in `xdg-desktop-portal-kde` that breaks persistence if it's restarted for whatever reason, for example when rebooting (see https://bugs.kde.org/show_bug.cgi?id=480235 and https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/639#note_859651 for more details), so at the moment this only works when restarting Krfb in the same session.
2024-06-01 12:27:07 +00:00
Andreas Sturmlechner
36349df89b
Fix build with >=QtWaylandScanner-6.7.1
...
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org >
2024-05-20 21:29:25 +02:00
Aleix Pol
0d3a38f39e
pw: Fix build with last released KPipeWire release
2024-05-01 23:04:49 +02:00
Yaroslav Sidlovsky
6e7a5ba569
Fixed crash calling PWFrameBuffer::cursorPosition()
...
Return default QPoint when `d->cursor` is not set.
BUG: 472453
2024-04-22 17:06:36 +03:00
Laurent Montel
882447a1af
Use QList directly
2024-04-12 07:03:32 +02:00
Aleix Pol
378472f8b2
pw: Improve fb allocation code.
...
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.
2024-03-13 00:35:21 +01:00
Maxime Roussin-Belanger
b3e3042bd8
Fix pipewire.h include not found
...
Without linking directly on PkgConfig::PipeWire, the header isn't found.
It isn't found because KPipeWire doesn't expose that dependency publicly.
2024-01-31 02:22:44 +00:00
Aleix Pol
a87302156a
wayland: Adapt to change in kpipewire
2024-01-19 01:49:12 +01:00
Nicolas Fella
39c83720bf
Remove module from KPipeWire includes
...
This doesn't work in KF6
2024-01-08 01:02:22 +01:00
Nicolas Fella
b8e011dd1c
Fix nativeEventFilter signature for Qt6
2024-01-08 00:55:08 +01:00
Nicolas Fella
a8b840daac
Fix includes for QX11Info when using Qt6
2024-01-08 00:55:08 +01:00
Nicolas Fella
990d5c341a
Adapt build system for building against Qt6
2024-01-08 00:55:06 +01:00
Nicolas Fella
4753904c13
Remove unused include
2024-01-08 00:54:55 +01:00
Nicolas Fella
ba75f0d7ed
Port framebuffers away from deprecated QDesktopWidget
...
Use QPlatformNativeInterface to get the WId instead
2024-01-08 00:54:53 +01:00
Nicolas Fella
b7a2db5c71
Drop qt framebuffer
...
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
2024-01-08 00:53:15 +01:00
David Edmundson
699995116f
Remove unused parts of pipewire backend
...
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.
2023-08-03 13:03:08 +00:00
Aleix Pol
9c7f354f72
pipewire: Drop dependencies that remained after the port to KPipeWire
2023-04-23 19:15:51 +02: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
Aleix Pol i Gonzalez
4db9c65083
pipewire: Port to use KPipeWire
...
Rather than using pipewire directly, we can use this framework which
allows us to share a bunch of code with Plasma.
2023-01-12 13:48:46 +00:00
Nicolas Fella
04494dfeb0
Fix broken WId refactoring
...
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
2022-08-04 11:57:55 +02: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
Laurent Montel
720478a317
Add missing override
2022-06-28 22:30:15 +02:00
Laurent Montel
18591e967c
Remove extra ';'
2022-06-23 06:48:58 +02:00
Laurent Montel
8365e97f9a
Remove duplicate header between header cpp file
2022-05-05 07:04:45 +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
l10n daemon script
d45679bdbd
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-19 01:44:50 +00:00
Jan Grulich
96eb21da35
PipeWire fb: process cursor metadata even for empty buffer
...
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.
2022-01-05 11:39:29 +01:00
Aleix Pol
1d23966d79
pipewire: Support SPA_META_VideoDamage
...
Inform about the regions that changed so everything doesn't need to be
sent on every frame.
2021-11-03 14:28:54 +00:00
Aleix Pol
61d464676c
pipewire: Support cursors
2021-11-03 14:28:54 +00:00
Aleix Pol
4707bde236
Introduce krfb-virtualmonitor
...
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.
2021-10-29 14:05:34 +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
Aleix Pol
b4eccc2134
pipewire: Use C99
...
Reduces the amount of warnings we get
2021-10-14 13:41:16 +00:00
l10n daemon script
97cbf48059
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-10-12 01:17:15 +00:00
l10n daemon script
c8207581f4
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-10-11 01:18:41 +00:00
Laurent Montel
a9241dfe88
We can use std::as_const
2021-08-31 08:46:39 +02:00
Laurent Montel
c729e9e048
Modernize code
2021-07-09 08:53:14 +02:00
Laurent Montel
dc64af6f5e
Remove code for old qt version
2021-07-09 08:53:14 +02:00
Aleix Pol
b8f972d59e
Fix crash when the destination stride != source stride
...
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
2021-06-17 21:03:56 +02:00
Ömer Fadıl Usta
3a1a5ad7a2
Add missing check for HAVE_DMA_BUF
2021-06-03 09:15:48 +00:00
Ömer Fadıl Usta
8e667abe69
Fix typo on epoxy variablename revert ifdef back to if
2021-06-03 09:05:48 +00:00
Ömer Fadıl Usta
2e82546012
Fix cmakedefine parts and increase cmake version
2021-06-03 07:30:29 +00:00
Jan Grulich
acc70e4cee
PipeWire support improvements
2021-06-02 12:25:00 +00:00
Alexander Lohnau
4d84d14070
Clean up ServiceType property usage for JSON based plugins
...
Task: https://phabricator.kde.org/T14483
2021-05-22 14:17:40 +00:00