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 747471 - [wayland] gdk_screen_get_monitor_geometry() returns invalid geometry
[wayland] gdk_screen_get_monitor_geometry() returns invalid geometry
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-07 18:43 UTC by Christian Hergert
Modified: 2015-04-09 04:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hergert 2015-04-07 18:43:30 UTC
It's common for an application to set a default geometry for a window based on the monitor geometry. But gdk_screen_get_monitor_geometry() returns a width and height of zero on the wayland backend. gdk_screen_get_width() and gdk_screen_get_height() also appear to be returning zero.
Comment 1 Christian Hergert 2015-04-07 18:48:16 UTC
A bit more info.

This only seems to happen for me when displaying the first window. Subsequent queries (after the first window has been displayed) get a valid geometry back from the GdkScreen.