per-app-cast: per-window screencast patch

This commit is contained in:
skeetamine
2026-06-20 01:21:22 +03:00
committed by A Frederick Christensen
parent ee22414b44
commit 41fdaddfb0
2 changed files with 212 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
### Description
Adds per-window screen sharing aka toplevel capture via `ext-foreign-toplevel-image-capture-source-v1` based on the sway implementation <br>
XWayland clients work in basic testing but it should be considered rather experimental. There is some possible restacking edge-cases but I was not able to reproduce them yet <br>
Note that the captured surface is rendered a second time into its own scene, so there's a small GPU cost while a capture is active
Targets the dwl **`wlroots-next`** branch (base commit `d41ecb745c`).
### Requirements
| Requirement | Notes |
| --- | --- |
| `wlroots` ≥ 0.20 | mandatory |
| `xdg-desktop-portal-wlr` ≥ 0.8 | `chooser_type` has to be configured as `dmenu` |
### Download
- [per-app-share-wlroots-next-d41ecb745c](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/per-app-cast/per-app-share-wlroots-next-d41ecb745c.patch)
### Authors
- [skeetamine](https://codeberg.org/skeetamine)