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

Clicks target the final window position with animations off, rather than visual #1306

Open
acidnik opened this issue Mar 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@acidnik
Copy link

acidnik commented Mar 19, 2025

Have window 1 (e.g. Gimp) partially visible and window 1 (firefox) in focus (see fig. 1)

Click in the area circled red
fig 1

Window 1 is now focused (as expected), but click actually happened not in the area you clicked
fig 2

Expected result:
Click should happen at the coordinates where I click (before switching to window)

System Information

  • niri version: niri 25.02
  • Distro: Arch
  • GPU: NVIDIA Geforce RTX 3050
  • CPU: 13th Gen Intel i9-13900 (32) @ 5.300GHz
@acidnik acidnik added the bug Something isn't working label Mar 19, 2025
@YaLTeR
Copy link
Owner

YaLTeR commented Mar 20, 2025

It actually works correctly for me:

out.mp4

@acidnik
Copy link
Author

acidnik commented Mar 20, 2025

I think I found the difference. I have animations off in my config. Turning them on is a temporary fix for me, even with small values for slowdown

@YaLTeR
Copy link
Owner

YaLTeR commented Mar 20, 2025

I see. This is a curious edge case you found. The way animations work in niri makes this quite easy to fix actually, but I need to think if the fix would break any other places.

@YaLTeR YaLTeR changed the title Click in inactive window happens at wrong place Clicks target the final window position with animations off, rather than visual Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants