Content gets cropped with a wrong center after moving the cursor out of zathura
Description:
As the title, this bug can be stably reproduced on my platform by following these steps:
- open a pdf file using zathura
- copy something (the message panel pops up at the bottom)
- move the cursor to another window
- now the content is cropped, and all attempts to zoom are centered at the wrong position
Environment:
OS: Artix Linux WM: Hyprland (Wayland)
Reproduction confirmed on commit e68c0f5f, though I'm pretty sure that this bug appeared earlier from last week in the release as this bug is discovered when I was using the packaged zathura release from Artix repo. If needed, I can try bisecting this when I have time.
A video of the reproduction of this bug can be downloaded from https://paste.fal.moe/RkHxTwjf.mp4