Skip to content

selection: instantly notify clients when source dies #1762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kchibisov
Copy link
Member

Smithay uses lazy notify when there's actual interaction, which is unexpected and doesn't properly reflect the state of the clipboard. Instead immediately notify clients when the source was destroyed.

Links: YaLTeR/niri#1831

--

Need to do that for all the rest of the selections protocols and drop the alive check, I guess.

@kchibisov kchibisov force-pushed the smithay-drop-selection branch from 32e34dc to ea39757 Compare June 21, 2025 15:32
@kchibisov kchibisov marked this pull request as ready for review June 21, 2025 15:32
@kchibisov kchibisov requested a review from YaLTeR June 21, 2025 15:32
@kchibisov kchibisov force-pushed the smithay-drop-selection branch from ea39757 to 3377ed3 Compare June 21, 2025 15:48
Smithay uses lazy notify when there's actual interaction, which is
unexpected and doesn't properly reflect the state of the clipboard to
clipboard managers. Instead immediately notify clients when the source
was destroyed by sending `null`.

Links: YaLTeR/niri#1831
@kchibisov kchibisov force-pushed the smithay-drop-selection branch from 3377ed3 to c521b10 Compare June 21, 2025 16:05
Copy link
Contributor

@YaLTeR YaLTeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test but looks reasonable

@kchibisov
Copy link
Member Author

CI failure is unrelated.

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