Skip to content

Conversation

na-na-hi
Copy link
Contributor

Fixes race when data sources are created while a seat is being added/removed. Also removes an unnecessary flush after the fix.

Used to signal clipboard backend uninit.
@na-na-hi na-na-hi force-pushed the wayland-clipboard-fix-2 branch from f9e89ce to d94bd79 Compare July 23, 2025 04:49
na-na-hi added 2 commits July 23, 2025 00:51
Currently, it is done in set_data which is called by core.
It was never meant to do so and it is not thread safe when data
sources are created while a seat is being added/removed.

Fix this by passing a message to clipboard thread instead so that
it is done in a thread safe way.
Not needed anymore. After data sources are created, the next loop
iteration of clipboard_wayland_dispatch_events will immediately start
and flush display.

This reverts commit c399422.
Copy link

@kasper93 kasper93 merged commit ff1bb2f into mpv-player:master Jul 23, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants