pwmt / zathura

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

Cannot open zathura properly, window raised but not actived #389

Closed sebastinas closed 5 months ago

sebastinas commented 1 year ago

On GitLab by @omelet on Mar 23, 2023, 08:45


I'm using KDE plasma with Linux X11.

This problem happens only in some terminal emulator, such as wezterm and kitty.

When I execute zathura some.pdf in wezterm in my shell, the window opens normally but it appears under the wezterm window and didn't focus on it. It is raised (like xdotool windowraise) but not focused (like xdotool windowactive).

When using konsole, alacritty, gnome-terminal, it focuses on the pdf viewer normally. If lauching from rofi or krunner, it focuses on it normally too.

It seems that neither kitty nor wezterm use gui frameworks like GTK so it might be the point?

reference: https://github.com/wez/wezterm/issues/3324

EDIT: current zathura version:

zathura 0.5.2
girara 0.3.9 (runtime: 0.4.0)
(plugin) pdf-mupdf (0.4.0) (/usr/lib/zathura/libpdf-mupdf.so)

The problem will still happen without the plugin.

sebastinas commented 1 year ago

I suspect that's your window manager behaving oddly. Nothing on zathura's side does that.