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 700737 - [wayland] gdk_screen_get_height() returns wrong value
[wayland] gdk_screen_get_height() returns wrong value
Status: VERIFIED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-20 18:43 UTC by U. Artie Eoff
Modified: 2013-06-12 16:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description U. Artie Eoff 2013-05-20 18:43:16 UTC
gdk_screen_get_height(...) actually returns the "width" (i.e. the same as gdk_screen_get_width(...)).  This only happens on the wayland gdk backend.

wayland (master) heads/master-0-g508dd69
fontconfig (master) heads/master-0-g0f9aa87
drm (master) heads/master-0-gacfbf39
mesa (master) heads/master-0-g4f518e1
libxkbcommon (master) heads/master-0-ga392d26
pixman (master) heads/master-0-gcb5d131
cairo (master) heads/master-0-g631bf29
weston (master) heads/master-0-gd4409a9
harfbuzz (master) heads/master-0-gfa3d0a0
glib (master) heads/master-0-gad7959c
atk (master) heads/master-0-gc71edfa
gdk-pixbuf (master) heads/master-0-gf4ce83a
pango (master) heads/master-0-g49712d6
at-spi2-core (master) heads/master-0-ge2661ee
at-spi2-atk (master) heads/master-0-g031946b
gtk+ (master) heads/master-0-g669d1d6
Comment 2 U. Artie Eoff 2013-06-05 03:20:02 UTC
(In reply to comment #1)
> https://git.gnome.org/browse/gtk+/commit/?id=3beeb2cda024bd66ec95a795eefd393f58f74a68

Can we backport this patch to 3.8 stable release branch?
Comment 3 Rob Bradford 2013-06-10 09:47:56 UTC
Do you see this problem on 3.8? That code was only added afterwards...
Comment 4 U. Artie Eoff 2013-06-12 16:56:46 UTC
(In reply to comment #3)
> Do you see this problem on 3.8? That code was only added afterwards...

Oops, you're right... the patch would not make sense on 3.8.  3.8 behaves totally different than the initial report eluded to.  The gdk_screen_get_height/width() methods both return 8192 on 3.8 and are both incorrect (unimplemented for Wayland).  I'm impartial, then, about making it work on 3.8 since Gtk+ Wayland backend is still classified as unstable.