GNOME Bugzilla – Bug 640826
Wrong window position
Last modified: 2018-05-22 14:08:44 UTC
When I open a document the Evince window is partially off screen with the right and lower part of the window being cut off. It seems like Evince does not let the window manager position the window. I use the Blackbox window manager by the way. I have not experienced this problem with any other application.
This is exactly what I'm experiencing on Windows 7. Tested on two different laptops running Windows 7 Pro and Windows 7 Home. I first mentioned the problem here: https://mail.gnome.org/archives/evince-list/2012-October/msg00002.html
Same thing here with GNOME Shell 3.20 on Fedora 24.
That this happen with any document? say, both documents that had never been opened by Evince and those opened by Evince?
Yes.
Created attachment 336268 [details] monitor layout I actually have two 22" monitors. Monitor 1 (as labelled by the GNOME Display Settings panel) is set to secondary display, in landscape, 1680×1050. Monitor 2 is set to primary (with GNOME Shell black top bar), portrait, 1050×1680. They are aligned at the bottom. It looks as if Evince spawns on monitor 1 with its top left corner as it would be if monitor 1 was as high as monitor 2. See attached annotated screenshot.
Alexandre, thanks for the explanation. I think your guess is right, and also think that probably we are over-doing window placement... Keep in mind that the code for windows placement and windows size is very old and has not been touched in years...
(In reply to José Aliste from comment #6) > Keep in mind that the code for windows placement > and windows size is very old and has not been > touched in years... Yeah, I can see that there are a few related bugs.
*** Bug 771848 has been marked as a duplicate of this bug. ***
Trying to reproduce another bug, I got the following warning: (evince:30818): Gtk-WARNING **: Allocating size to EvWindow 0x23ed0f0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? I could not get the same message later, but it may be a hint.
I got the same message when running evince from a terminal.
you can run evince under gdb with --g-fatal-warnings to see where is this warning coming from.
Here is what gdb says: (gdb) run --g-fatal-warnings Travel4.pdf Starting program: /usr/bin/evince --g-fatal-warnings Travel4.pdf [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffecd4d700 (LWP 3020)] [New Thread 0x7fffe7fff700 (LWP 3021)] [New Thread 0x7fffe77fe700 (LWP 3022)] (evince:3016): Gtk-WARNING **: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned Thread 1 "evince" received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff5458241 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 (gdb) cont Continuing. [New Thread 0x7fffe6df0700 (LWP 3027)] [New Thread 0x7fffe4bd5700 (LWP 3028)] [New Thread 0x7fffcfbff700 (LWP 3029)] [New Thread 0x7fffcf3fe700 (LWP 3030)] [New Thread 0x7fffcebfd700 (LWP 3031)] (evince:3016): Gtk-WARNING **: Allocating size to EvSidebar 0x555555be6500 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? Thread 1 "evince" received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff5458241 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/201.