hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
17.88k stars 752 forks source link

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

Closed MariuszTrybus closed 6 days ago

MariuszTrybus commented 1 week ago

Describe your PR, what does it fix/add?

Fixes https://github.com/hyprwm/Hyprland/issues/6292 and https://github.com/hyprwm/Hyprland/issues/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 commented 6 days ago

can you slap a clang-format?

MariuszTrybus commented 6 days ago

Sorry, my bad. It's done.