Evince steals focus when automatically reloading the document

Bug #664448 reported by Anonym25712
68
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Evince
Invalid
Wishlist
evince (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: evince

When editing LaTeX files, my setup is to have Vim on one workspace and Evince on another one. I compile the document directly from Vim, but every time I do this, Evince find that the document has changed and automatically reloads it. This is fine, but by doing this Evince steals the focus from Vim, leaving me on my workspace with my unfocused Vim window.

And since Evince is so smart it doesn't need any preferences window, I can't configure it to not auto-reload modified documents...

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: evince 2.32.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Thu Oct 21 14:08:32 2010
ExecutablePath: /usr/bin/evince
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate i386 (20100928.1)
ProcEnviron:
 PATH=(custom, user)
 SHELL=/bin/zsh
 LANG=en_US.utf8
SourcePackage: evince

Revision history for this message
Anonym25712 (anonym25712) wrote :
Revision history for this message
Pierre-Antoine Champin (pchampin) wrote :

I have a very similar use case.

Rather than a preference to disable auto-reload, I would like a preference to disable focus-stealing when the document change. I would even be happy if this was only accessible via gconf-editor.

For the record, I can't imagine any scenario where this focus-stealing is really useful. I think that at most, evince could just require attention -- I don't know the technical term for this, but this happens when a window icon bounces or blinks in the task bar.

Revision history for this message
David Coeurjolly (dcoeurjo) wrote :

I do agree with the previous comment: auto-load is a great feature and focus-stealing definitely not a good idea for evince...

Revision history for this message
Anonym25712 (anonym25712) wrote :

Any feedback on this issue? A simple workaround to disable at least auto-reload (reload already has its own toolbar icon and its own keyboard shortcut) or auto-focus would help a lot.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
https://bugzilla.gnome.org/show_bug.cgi?id=592821

Changed in evince (Ubuntu):
status: New → Confirmed
Changed in evince:
importance: Unknown → Wishlist
status: Unknown → New
Robert Roth (evfool)
Changed in evince (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Changed in evince:
status: New → Fix Released
Revision history for this message
Andi Albrecht (andialbrecht) wrote :

The Bugzilla bug is closed without a comment. It seems that running Evince in presentation mode reloads the document without grabbing the focus. This work for me since I'm running Evince on my second display.

Revision history for this message
Henrik Nordvik (henrikno) wrote :

Bug is still up and running, annoying as ever.

Changed in evince (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
jasonmc (jasonmccandless) wrote :

Are there any known workarounds at all? This is a major annoyance when I'm writing papers.

Revision history for this message
rfvuhbtg (rfvuhbtg) wrote :

For the time being, I am using Okular to view my LaTeX files. It also auto-reloads a file when the pdf is changed, but it doesn't steal focus. It also stays at the same position you were viewing the file at previously when it reloads (i.e. doesn't jump to the start of the document on each reload).

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

For me this issue seems to be fixed (Ubuntu 11.04), i.e. evince does auto-reload but it does not grab focus and the position within the document does not change. Is anyone still seeing this problem with the current version of Ubuntu?

@Henrik: Please do not change the status of a bug if you do not know what you are doing, see https://wiki.ubuntu.com/Bugs/Status for what "Triaged" means.

Revision history for this message
Oben Sonne (obensonne) wrote :

I know I shouldn't recommend this, but one can manually install the most recent evince version from natty (2.32.0-0ubuntu12.2) in maverick (get it here: https://launchpad.net/ubuntu/natty/+package/evince). Based on this dirty workaround, I can confirm that this issue does not appear anymore. Thanks, that saved me a lot of #*?/§;~.

Revision history for this message
jasonmc (jasonmccandless) wrote :

I'm having the problem while running Natty, so I'm not sure about it being fixed in the Natty package. In particular, it steals focus if compiz focus stealing prevention is disabled, or if it's on a different X screen then compiz focus stealing protection must be at 'very high' or else it will steal focus.

The problem with re-opening on the first page of the document appears to be fixed now.

Revision history for this message
Oben Sonne (obensonne) wrote :

Indeed, I have to revoke my fix-confirmation. I didn't experience the focus stealing in the first hour after the update but then it occurred again. Now Evince sometime steals the focus and sometimes it politely stays in the background. Strange, I couldn't yet detect what causes which behavior.

Changed in evince:
status: Fix Released → New
Changed in evince:
status: New → Invalid
Revision history for this message
Paul White (paulw2u) wrote :

Upstream bug was marked as a duplicate of #640441 which
was closed as the problem was transferred to
https://gitlab.gnome.org/GNOME/evince/issues/200

That report was closed 2018/05/28 as bug was no longer
reproducible.

As there have been no comments here on Launchpad for almost
eight years, can this bug report be closed too?

Changed in evince (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

No reply to comment #14
Unable to reproduce with evince 3.28.4 and Ubuntu 18.04
Bug report won't expire due to bug watch
Issue was raised against old interface
As 13 users say they were affected closing as fixed in the new interface

Changed in evince (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.