After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623829 - annotation windows steal focus from main window
annotation windows steal focus from main window
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-08 12:42 UTC by gvlatyshev
Modified: 2012-10-07 05:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example pdf with annotations (34.33 KB, application/pdf)
2010-07-08 12:42 UTC, gvlatyshev
Details

Description gvlatyshev 2010-07-08 12:42:24 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?)
Comment 1 Carlos Garcia Campos 2010-07-10 16:05:15 UTC
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.
Comment 2 Carlos Garcia Campos 2010-10-30 13:12:24 UTC
*** Bug 633475 has been marked as a duplicate of this bug. ***
Comment 3 Vitezslav Humpa 2011-02-18 13:09:46 UTC
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
Comment 4 Carlos Garcia Campos 2011-02-20 11:14:51 UTC
Now, annotation windows only accept the focus when the mouse pointer is over the window, allowing to scroll with the keyboard.
Comment 5 Germán Poo-Caamaño 2012-10-07 05:59:42 UTC
Adding commit link for reference:
http://git.gnome.org/browse/evince/commit/?id=8a635b0b7d54cecc864299c8decbcc51b3c068a9