Hi, the version of evince in ports steals focus when the document is reloaded. This is driving me insane while editing LaTeX files. The thing keeps jumping in my face a few seconds after I rebuild the pdf.
It has been fixed in evince trunk, see http://bugzilla.gnome.org/show_bug.cgi?id=571051 The patch they applied to trunk does not apply to our version, but the issue has a patch attached which fixes the problem and applies to our version with little fuzz. So the patch below fixes the port. OK to commit? Now, back to working on my report for college, in peace... Stefan Index: Makefile =================================================================== RCS file: /cvs/ports/graphics/evince/Makefile,v retrieving revision 1.22 diff -u -p -r1.22 Makefile --- Makefile 6 Apr 2009 10:09:06 -0000 1.22 +++ Makefile 6 Apr 2009 15:36:00 -0000 @@ -11,7 +11,7 @@ GNOME_VERSION= 2.24.2 CATEGORIES= graphics print -PKGNAME-main= ${DISTNAME}p5 +PKGNAME-main= ${DISTNAME}p6 PKGNAME-djvu= evince-djvu-${GNOME_VERSION} PKGNAME-dvi= evince-dvi-${GNOME_VERSION} Index: patches/patch-shell_ev-window_c =================================================================== RCS file: patches/patch-shell_ev-window_c diff -N patches/patch-shell_ev-window_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-shell_ev-window_c 6 Apr 2009 15:36:00 -0000 @@ -0,0 +1,15 @@ +$OpenBSD$ +--- shell/ev-window.c.orig Mon Apr 6 16:34:01 2009 ++++ shell/ev-window.c Mon Apr 6 16:34:10 2009 +@@ -926,6 +926,11 @@ setup_size_from_metadata (EvWindow *window) + GValue x = { 0, }; + GValue y = { 0, }; + ++ /* Don't try to change the window when reloading a document */ ++ if (window->priv->in_reload) { ++ return; ++ } ++ + if (ev_metadata_manager_get (uri, "window_maximized", &maximized, FALSE)) { + if (g_value_get_boolean (&maximized)) { + gtk_window_maximize (GTK_WINDOW (window));