GNOME Bugzilla – Bug 623829
annotation windows steal focus from main window
Last modified: 2012-10-07 05:59:42 UTC
Created attachment 165473 [details] example pdf with annotations evince 2.31.4 When annotation window is shown the main window loses focus. This breaks scrolling document with keyboard Steps to reproduce: 1. open pdf with annotation on second page 2. scroll down with keyboard (down arrow or pagedown) until annotanion is shown The main window loses focus and you cannot scroll down with keyboard until you press alt-tab Expected: navigation keys should work as usual unless annotation window is explicitely focused (by mouse?)
I agree, but I don't know how to prevent focus stealing. Setting accept_focus to FALSE in the annot window fixes it, but then annot contents can't be edited, since the window never gets the focus. Using gtk_window_set_focus_on_map() doesn't help either.
*** Bug 633475 has been marked as a duplicate of this bug. ***
What happens is that the Evince window looses focus also while zooming a fairly large document so that the actual width of the document gets larger than the container window. This has been reported with Evince 2.91.6 on Fedora 15 Alfa, and is likely related - https://bugzilla.redhat.com/show_bug.cgi?id=675386. Please check it out
Now, annotation windows only accept the focus when the mouse pointer is over the window, allowing to scroll with the keyboard.
Adding commit link for reference: http://git.gnome.org/browse/evince/commit/?id=8a635b0b7d54cecc864299c8decbcc51b3c068a9