GNOME Bugzilla – Bug 760567
GDK screen size does not count for HiDPI on Wayland
Last modified: 2018-05-02 16:53:20 UTC
Created attachment 318940 [details] test program GDK gives me 3200x1800 on wayland but 1600x900 on X In X we divide by the window scale (https://github.com/GNOME/gtk/blob/master/gdk/x11/gdkscreen-x11.c#L96) In wayland we don't (https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkscreen-wayland.c#L173)
Created attachment 337536 [details] [review] divide width and height by scale factor
Review of attachment 337536 [details] [review]: Is suspect we should rather change the "geometry" of the GdkMonitor instead (as set by gdk_monitor_set_size()). Note that under mutter, whatever monitor geometry set on the screen, it'd still be bogus when there is a scale != 1 since mutter still doesn't handle that properly meaning there is no way to send sane values.
-- 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/gtk/issues/590.