Fix Hyprland rotation not detected correctly
wl-kbptr currently doesn't handle screen rotation correctly on Hyprland, leading to incorrect pointer behavior. This is It seems like Hyprland manages output transformations differently compared to other compositors.
To address this, I added a check for the XDG_CURRENT_DESKTOP environment variable. If it equals "Hyprland", the rotation detection logic is skipped.
I think we need to open an issue with Hyprland first to see how they want to do this. If they decide to align with the other compositors, this will inevitably break. I also want to avoid using compositor specific code as much as possible (at the moment there's none).
I think we need to open an issue with Hyprland first to see how they want to do this. If they decide to align with the other compositors, this will inevitably break. I also want to avoid using compositor specific code as much as possible (at the moment there's none).
Of course I totally understand that you don't want this hardcoded "Hyprland" value. This is a workaround that works for me for now. I wanted to leave a PR for those who want a quick workaround for now.
@ural89 Have you opened an issue/discussion for that on the Hyprland repo?