Skip to content

Conversation

@mwahstache
Copy link
Contributor

The return i - 1 line in idxForHeight was causing a crash when called inside moveWindowTo, specifically when the cursor was at the top of the screen. After changing the check in the line right before that call, this also fixes #422 .

@mwahstache mwahstache changed the title hyprscrolling: fixd idxForHeight and moveWindowTo functions hyprscrolling: fixed idxForHeight and moveWindowTo functions Nov 21, 2025
@mwahstache mwahstache changed the title hyprscrolling: fixed idxForHeight and moveWindowTo functions hyprscrolling: fixed moveWindowTo behavior Nov 21, 2025
@mwahstache
Copy link
Contributor Author

I instead changed how we're calling idxForHeight and not idxForHeight itself. idxForHeight seems to behave as intended.

@vaxerski vaxerski merged commit 7ffc0b3 into hyprwm:main Nov 23, 2025
1 check passed
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.

hyprscrolling : movewindowto

2 participants