-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gtk screen dimension detection is broken with high dpi displays on windows7 and later #697
Comments
The solution is not pretty: r7823 calls |
Backport in r7829. Please check on displays that have high dpi and verify that the reported screen dimensions were wrong before, but are now correct. (you can also see the tray menu popping up in the wrong place on those displays) Raising to blocker as 0.14.8 is now overdue. |
2014-09-29 23:46:00: afarr commented
|
@afarr: to trigger this, you may need to set high DPI settings manually if your monitor configuration is not using high dpi: [http://msdn.microsoft.com/en-us/library/dn469266(v=vs.85).aspx#appendix_a_setting_high_dpi_in_windows] An easier way of seeing the values we detect for the screen dimensions is to run |
Edit title: I believe that the "wrong" dimensions reported only happens with windows 7 and later, and this is dpi related. |
2014-09-30 18:23:39: afarr commented
|
2014-10-02 00:47:12: afarr commented
|
2014-10-02 05:05:49: totaam commented
|
2014-10-02 22:56:39: afarr commented
|
2014-10-03 03:40:11: totaam commented
|
2014-12-04 17:44:08: totaam commented
|
2015-02-06 23:57:15: afarr commented
|
2015-11-05 23:16:53: afarr commented
|
2015-11-05 23:18:57: afarr uploaded file
|
2015-11-08 15:38:41: antoine commented
|
2015-11-10 03:19:47: afarr commented
|
2015-11-10 15:47:17: antoine commented
|
2015-11-12 02:30:27: afarr commented
|
2015-11-12 03:14:35: antoine uploaded file
|
2015-11-12 04:48:28: antoine commented
|
2015-11-12 23:24:01: afarr changed owner from afarr to antoine |
2015-11-12 23:24:01: afarr commented
|
2015-11-13 04:15:56: antoine changed owner from antoine to afarr |
2015-11-13 04:15:56: antoine commented
|
2015-11-18 02:31:01: afarr commented
|
2015-11-18 07:50:55: antoine commented
|
2015-11-19 20:48:49: afarr changed owner from afarr to antoine |
2015-11-19 20:48:49: afarr commented
|
2015-11-22 09:48:18: antoine changed owner from antoine to afarr |
2015-11-22 09:48:18: antoine commented
|
2015-12-02 02:26:56: afarr commented
|
2015-12-05 01:09:35: afarr commented
|
2015-12-05 08:03:10: antoine commented
|
2015-12-08 02:20:21: afarr commented
|
2015-12-09 00:09:39: afarr commented
|
2015-12-13 07:53:17: antoine commented
|
2015-12-14 19:59:18: afarr commented
|
2016-01-11 22:29:10: afarr commented
|
This will do for 0.16, will follow up in #1086. |
This is causing no end of problems with:
etc.. probably more we haven't noticed yet.
A 4k monitor at 3840x2160 gives me this data:
The DPI is set at 144x144.
Even more strange is how the screen size is half the monitor size! The monitor
DISPLAY1
claims to have a DPI of 72x72.We get the same problem with the GTK3 build.
This looks like what gdk-window-get-scale-factor is for, but we don't have working GTK 3.10 builds for win32... and until GTK3 reaches feature parity (#640), we need a workaround for GTK2 too.
Also, as explained here: In GTK/Linux, what's the correct way to get the DPI scale factor?, having the scale factor as an integer is bizarre and unhelpful. (though looking at the code, maybe the docs are wrong). See also: [http://lwn.net/Articles/562287/#Comments]:
If we can somehow figure out the scaling factor, the maybe we can tell gnome server side using
Gdk/WindowScalingFactor
}, see hidpi support in gnome.Some info on doing this for Linux gnome clients: [https://bugzilla.gnome.org/show_bug.cgi?id=726238]
The text was updated successfully, but these errors were encountered: