Skip to content

Conversation

@ural89
Copy link

@ural89 ural89 commented Jul 7, 2025

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.

@moverest
Copy link
Owner

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).

@ural89
Copy link
Author

ural89 commented Jul 18, 2025

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.

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