forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/protocols/screencopy.rsClear filter

2026-09-11

Fix screencopy buffers when buffer-size != shm-pool-size (#4566)Stephan · Unverified9e72e49
Fix screencopy buffers when buffer-size != shm-pool-size (#4566)

* screencopy: allow buffer-size != shm-pool-size

* screencopy: add helper for advertised buffer stride

2026-07-19

2026-01-17

2026-01-14

ipc: Add PID to screencopy CastsIvan Molodetskikh · e546b33Browse files
screencopy: Add timeout to casts considered stoppedIvan Molodetskikh · b39edf4
screencopy: Add timeout to casts considered stopped

Otherwise xdp-wlr never stops the cast after it first starts.

2026-01-12

ipc: Add screencopy cast trackingIvan Molodetskikh · e82830c
ipc: Add screencopy cast tracking

Track wlr-screencopy sessions that use with_damage as screencasts. These
are used by tools like wl-screenrec for continuous recording.

2026-01-13

Refactor wlr-screencopy state cleanupIvan Molodetskikh · 9c79108
Refactor wlr-screencopy state cleanup

Before we cleaned up when binding a new manager, meaning that after a
screencopy client exited, the queue kept existing until a new one is
bound. We'll need precise tracking for the screencast IPC, so this
commit refactors to do just that: clean up the queue immediately when
all referring objects no longer exist.

This commit also fixes an issue where destroyed frames (e.g. from a
killed client) didn't clean the corresponding screencopy objects,
leading them to exist forever.
screencopy: Pop first screencopy instead of lastIvan Molodetskikh · 2571242
screencopy: Pop first screencopy instead of last

This was never found probably because no client submits multiple frames
at once.

2025-01-04

2024-08-08

screencopy: Change integer to fractional scaleIvan Molodetskikh · bb15d1e
screencopy: Change integer to fractional scale

That *was* wrong after all.
screencopy: Use monotonic timeIvan Molodetskikh · 07bd76e
screencopy: Use monotonic time

This way it matches up with presentation-time.

2024-07-30

2024-05-20

2024-03-08

Implement wlr-screencopy v1 (#243)sodiboo · Unverifiedca22e70
Implement wlr-screencopy v1 (#243)

* Implement wlr-screencopy

* Finish the implementation

Lots of changes, mainly to fix transform handling. Turns out, grim
expects transformed buffers and untransforms them by itself using info
from wl_output. This means that render helpers needed to learn how to
actually render transformed buffers.

Also, it meant that y_invert is no longer needed.

Next, moved the rendering to the Screencopy frame handler. Turns out,
copy() is more or less expected to return immediately, whereas
copy_with_damage() is expected to wait until the next VBlank. At least
that's the intent I parse reading the protocol.

Finally, brought the version from 3 down to 1, because
copy_with_damage() will need bigger changes. Grim still works, others
not really, mainly because they bind v3 unnecessarily, even if they
don't use the damage request.

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>