wl-kbptr icon indicating copy to clipboard operation
wl-kbptr copied to clipboard

Fix Hyprland rotation not detected correctly

Open ural89 opened this issue 5 months ago • 2 comments

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.

ural89 avatar Jul 07 '25 07:07 ural89

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

moverest avatar Jul 18 '25 08:07 moverest

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 avatar Jul 18 '25 08:07 ural89

@ural89 Have you opened an issue/discussion for that on the Hyprland repo?

vdawg-git avatar Nov 25 '25 10:11 vdawg-git