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

option to fix mouse breaking vrr #6483

Merged
merged 5 commits into from
Jun 14, 2024
Merged

option to fix mouse breaking vrr #6483

merged 5 commits into from
Jun 14, 2024

Conversation

UjinT34
Copy link
Contributor

@UjinT34 UjinT34 commented Jun 13, 2024

Describe your PR, what does it fix/add?

Added an option cursor:no_break_fs_vrr which allows skipping scheduleFrameForMonitor triggered by mouse events for fullscreen apps with VRR enabled. It fixes #6222, #5918

Added option cursor:min_refresh_rate to keep minimum refresh rate for cursor movement. Should be set to at least the minimum vrr supported by monitor since there is no point in keeping it lower. The default is 24.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

This option fixes VRR in games and other apps with high enough fps but causes mouse cursor freeze or stutter for others (e.g. fullscreen terminal or browser). cursor:min_refresh_rate should help with this issue.

Is it ready for merging, or does it need work?

Ready for merging.

src/helpers/Monitor.cpp Outdated Show resolved Hide resolved
vaxerski
vaxerski previously approved these changes Jun 14, 2024
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

wiki mr needed

@vaxerski
Copy link
Member

can you clang-format?

@UjinT34
Copy link
Contributor Author

UjinT34 commented Jun 14, 2024

can you clang-format?

Yes. But I don't really like the result. Looks less readable to me.

@vaxerski
Copy link
Member

thats just how we roll, tests will fail without clang-format :)

@vaxerski vaxerski merged commit a9d53a2 into hyprwm:main Jun 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mouse movement breaks VRR
2 participants