pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.1k stars 146 forks source link

Content gets cropped with a wrong center after moving the cursor out of zathura #435

Open sebastinas opened 10 months ago

sebastinas commented 10 months ago

On GitLab by @uetcis on Dec 12, 2023, 06:16


Description:

As the title, this bug can be stably reproduced on my platform by following these steps:

  1. open a pdf file using zathura
  2. copy something (the message panel pops up at the bottom)
  3. move the cursor to another window
  4. 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 e68c0f5f7f41c92bb3aca4204deb5e06dad185c0, 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

sebastinas commented 10 months ago

On GitLab by @uetcis on Dec 12, 2023, 06:50


I tried earlier versions of zathura and found that 0.5.2 has this issue as well. I doubt if this is caused by a regression in my window manager.

sebastinas commented 10 months ago

On GitLab by @sebastiancarlos on Dec 19, 2023, 11:11


I am having the same issue on Arch and Swaywm.

I noticed that the amount of displacement is proportional to the amount of text copied: If I copy just a few words, everything looks fine. If I copy several lines, the content is totally gone.