selection: allows using a wrapper source to filter data

1. Added support for intercepting clipboard selection operations.
2. Wraps data sources to control data provision based on client PID.
3. Added wlr_data_receiver to data source's send to identify the
recipient.
4. Includes new example "clipboard-control.c" to illustrate clipboard
permission management.
5. Added PID and client members to data source and receiver for access
control.
This commit is contained in:
JiDe Zhang 2025-09-19 15:58:58 +08:00
parent 1f0fb95e3b
commit 6745b7bd49
18 changed files with 2723 additions and 108 deletions

1996
examples/clipboard-control.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -47,6 +47,11 @@ compositors = {
],
'dep': [wayland_client, wayland_egl, egl, glesv2],
},
'clipboard-control': {
'src': 'clipboard-control.c',
'dep': [cairo],
'proto': ['xdg-shell'],
},
}
foreach name, info : compositors