Bug#475327: evince maps window with incorrect size
Vincent Lefevre
vincent at vinc17.net
Fri Dec 20 12:36:57 UTC 2013
Control: found -1 3.10.0-1
On 2008-04-09 22:43:05 -0400, Ivan Jager wrote:
> I'm having some trouble reproducing this, but here is what happened:
> 1. I clicked on a pdf in galeon, and let it open it with evince.
> 2. Evince popped up and got placed by the window manager (AFAICT)
> 3. Evince loaded the document, and resized itself, such that it's placement
> was stupid. (a good chunk of it ended up on the other monitor)
I can reproduce this for documents that are opened for the first time
with evince. I use fvwm's ActivePlacement feature. The problem is that
evince doesn't provide the correct window size to the window manager
early enough. This is the same problem as with gnuplot-qt using the
qt terminal:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668956
> When I try to reproduce it, it now opens the window with it's previous
> geometry, and stays that way after loading the PDF.
>
> After further experimentation, it seems that it uses the previous geometry
> for a document of the same page size (remembering multiple
> geometry -> page_size mappings) and only does the stupid resizing when it
> encounters a document with a new page size.
Actually evince (at least 3.10.0-1) seems to remember the filename,
not the page size, which is also stupid.
$ evince file1.pdf
[evince does the stupid resize (a)]
$ evince file1.pdf
[evince has remembered the window position for (a)]
$ cp file1.pdf foo.pdf
$ evince foo.pdf
[evince does the stupid resize (b)]
$ evince file2.pdf
[evince does the stupid resize (c)]
$ cp file2.pdf foo.pdf
$ evince foo.pdf
[evince uses the remembered window position for (b)]
This makes no sense, as the document is completely unrelated!
> Sorry, but I think xpdf does the right thing here...
Yes (trying evince since xpdf no longer works with newer fontconfig...).
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-gnome-maintainers
mailing list