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 640826 - Wrong window position
Wrong window position
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 771848 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-01-28 14:43 UTC by August Karlstrom
Modified: 2018-05-22 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
monitor layout (50.21 KB, image/png)
2016-09-26 15:09 UTC, Alexandre Franke
Details

Description August Karlstrom 2011-01-28 14:43:54 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.
Comment 1 PatrickT 2012-10-05 11:13:33 UTC
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
Comment 2 Alexandre Franke 2016-09-26 13:30:55 UTC
Same thing here with GNOME Shell 3.20 on Fedora 24.
Comment 3 Germán Poo-Caamaño 2016-09-26 14:27:26 UTC
That this happen with any document? say, both documents that had never been opened by Evince and those opened by Evince?
Comment 4 Alexandre Franke 2016-09-26 15:01:20 UTC
Yes.
Comment 5 Alexandre Franke 2016-09-26 15:09:01 UTC
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.
Comment 6 José Aliste 2016-09-26 15:26:18 UTC
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...
Comment 7 Alexandre Franke 2016-09-26 15:37:24 UTC
(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.
Comment 8 Germán Poo-Caamaño 2016-09-28 16:12:53 UTC
*** Bug 771848 has been marked as a duplicate of this bug. ***
Comment 9 Germán Poo-Caamaño 2016-09-28 17:36:44 UTC
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.
Comment 10 ate 2016-09-28 18:04:47 UTC
I got the same message when running evince from a terminal.
Comment 11 José Aliste 2016-09-28 18:08:26 UTC
you can run evince under gdb with --g-fatal-warnings to see where is this warning coming from.
Comment 12 ate 2016-10-08 16:30:00 UTC
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
Comment 13 GNOME Infrastructure Team 2018-05-22 14:08:44 UTC
-- 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.