pwmt / zathura

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

Window not raised with synctex-forward (Plasma/Wayland) #344

Open sebastinas opened 1 year ago

sebastinas commented 1 year ago

On GitLab by @gi1242 on Aug 1, 2022, 01:24


If you run zathura --synctex-forward ... on an already open file, it doesn't raise the window or demand attention on Plasma/Wayland. Would it be possible to do this? (Or at least have an option to do this?) Quite often if you have multiple windows viewing the same PDF on different virtual desktops, zathura --synctex-forward chooses to open the PDF on an instance in a different desktop. This is fine; but it would be nice if it would also raise that window (or at least demand attention) so the user knows which window to look at.

Thanks in advance

sebastinas commented 1 year ago

Do you have dbus-raise-window set to true?

sebastinas commented 1 year ago

On GitLab by @gi1242 on Aug 20, 2022, 17:41


Yes, I have dbus-raise-window set to true, and it still doesn't work.

I think the issue might be Plasma/Wayland related. I already have focus stealing (in Plasma settings) set to none; but the zathura window still doesn't reaise.

Thanks in advance.

GI

gi1242 commented 2 months ago

FYI, I still see the issue:

Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.6.29-1-lts (64-bit)
Graphics Platform: Wayland

The issue is only present when Zathura is run under wayland (not xwayland); I run xeyes and make sure the mouse cursor doesn't move when the mouse is over the Zathura window.

After this run from a terminal

zathura --synctex-forward "50:1:file.tex" file.pdf

The first run opens a new window and focusses it. All subsequent runs just highlight the line in question without focussing anything.