pwmt / zathura

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

[Question] How to go to a page without focusing windows? #417

Closed sebastinas closed 2 months ago

sebastinas commented 9 months ago

On GitLab by @rmorales on Sep 20, 2023, 10:16


I'm currently using the following command, which I can run in a terminal, to make a Zathura instance visit a specific page of the current document.

The 10 in the last argument represents 0-indexed page number (i.e. page no. 11)

$ dbus-send --type="method_call" --dest=org.pwmt.zathura.PID-25400 /org/pwmt/zathura org.pwmt.zathura.GotoPage uint32:10

After I execute this command, Zathura becomes the active window in my windows manager. I don't want this to happen.

I'm wondering if this has to do with my windows manager or Zathura. I don't see anything relevant in page_set in zathura.c (link to file), so everything seems to indicate that it might be my windows manager. Could anyone confirm this and provide some refernces?

sebastinas commented 9 months ago

On GitLab by @rmorales on Sep 21, 2023, 06:01


Solved! Set the configuration option dbus-raise-window to false.