Skip to main content

Module dcclient

Module dcclient 

Source
Expand description

Data-control clipboard client bridging a nested app compositor’s selection. Data-control CLIENT: the native clipboard bridge to a NESTED app compositor (labwc/kwin running under pixelflux).

Apps in a nested session use the inner compositor’s selection, which pixelflux’s own clipboard machinery never sees. selkies bridges it over the ScreenCapture ABI backed by this module instead of forking wl-copy/wl-paste per operation: one-shot [list_types]/[read], a write that returns with the selection taken (a detached thread then serves paste requests until another client takes the selection), and [watch] (a thread reporting selection changes to a Python callback). The compositor is spoken to through ext_data_control_manager_v1 (KWin since Plasma 6.3, wlroots since 0.19) or zwlr_data_control_manager_v1 (earlier wlroots and KWin), preferring the standardized ext form when both are advertised. Every compositor round-trip is deadline-bounded via [wlclient::bounded_roundtrip].