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 706388 - Disable Gtk+ scaling
Disable Gtk+ scaling
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-20 12:17 UTC by Alexander Larsson
Modified: 2013-08-20 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Disable scaling support with Gtk+ (1.05 KB, patch)
2013-08-20 12:18 UTC, Alexander Larsson
accepted-commit_now Details | Review

Description Alexander Larsson 2013-08-20 12:17:16 UTC
Right now if Gtk+ uses HiDPI scaling mutter goes crazy with e.g. window border rendering and event coordinates. Also, mutter kind of relies on GdkWindow and XWindows being "the same" size, etc. Not to mention that it needs to be able to handle other clients creating windows of an odd size (which is hard with gdk at scale 2).

So, I don't think it makes much sense to try to convert mutter to handle the Gdk automatic scale, instead we should just disable the gdk scaling and do the scaling ourselves.

Attaching a patch that just disables the scaling. This picks up the larger font dpi when in HiDPI, so its still pretty usable, but clearly we need to do more work later.
Comment 1 Alexander Larsson 2013-08-20 12:18:04 UTC
Created attachment 252404 [details] [review]
Disable scaling support with Gtk+
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-08-20 12:20:02 UTC
Review of attachment 252404 [details] [review]:

OK.
Comment 3 Alexander Larsson 2013-08-20 12:28:30 UTC
pushed