Skip to content
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

hacky fix for fixing output screencopy #249

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Conversation

lennoxlotl
Copy link

Very hacky fix to make screencopy continue capturing frames after Out of buffers error occurs.

PR as requested in #247

@vaxerski
Copy link
Member

I mean generally I don't see much wrong here, maybe just make a retry counter that counts to 3 and aborts if it keeps not working?

It can be reset once a frame gets sent successfully

@lennoxlotl
Copy link
Author

Sure, I'll make those changes quickly

@lennoxlotl
Copy link
Author

After experimenting a bit I found out that 3 would be too low of a number as it sometimes requires more retries. I did 6 for now, seems to work fine (at least on my machine)

@vaxerski
Copy link
Member

lgtm

@lennoxlotl lennoxlotl marked this pull request as ready for review August 19, 2024 13:20
@vaxerski vaxerski merged commit a08ecbb into hyprwm:master Aug 19, 2024
1 check passed
spikespaz pushed a commit to spikespaz-contrib/xdg-desktop-portal-hyprland that referenced this pull request Oct 28, 2024
The line hyprwm#249 calls system bus by default, dbus will deny this request,
then we need to call session bus instead.
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