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

Pointer constraints: Lock surface region when region is empty #6627

Merged
merged 2 commits into from
Jun 22, 2024

Conversation

MariuszTrybus
Copy link
Contributor

Describe your PR, what does it fix/add?

Fixes #6292 and #5900
Currently Hyprland locks mouse cursor based on provided region and it does not work when it's not provided. The PR fallbacks to surface region in such cases.

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

This is my first PR, I am not familiar with the codebase and wayland protocol

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

Ready

vaxerski
vaxerski previously approved these changes Jun 22, 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.

thanks!

@vaxerski
Copy link
Member

can you slap a clang-format?

@MariuszTrybus
Copy link
Contributor Author

Sorry, my bad. It's done.

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.

thanks!

@vaxerski vaxerski merged commit 0b924f5 into hyprwm:main Jun 22, 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.

Simple mouse capture does not work on Xwayland
2 participants