projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b46c75b
)
Scale top-left coordinates in display-monitor-attributes-list
author
Robert Pluim
<rpluim@gmail.com>
Tue, 7 Jan 2020 13:41:52 +0000
(14:41 +0100)
committer
Robert Pluim
<rpluim@gmail.com>
Tue, 7 Jan 2020 16:26:21 +0000
(17:26 +0100)
When using multiple monitors, and HiDPI, the top-left coordinates of
the monitors need to be adjusted, not just the width and height
(Bug#31223).
* xfns.c (Fx_display_monitor_attributes_list): Scale top-left
coordinates.
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index d0d5d399dc4846b1f5c1f1d40d0a563e4635cb97..276ea1c39353179d1ca5e9a688c0028888452cb1 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-5089,6
+5089,8
@@
Internal use only, use `display-monitor-attributes-list' instead. */)
#elif defined HAVE_GTK3
scale = gdk_screen_get_monitor_scale_factor (gscreen, i);
#endif
+ rec.x *= scale;
+ rec.y *= scale;
rec.width *= scale;
rec.height *= scale;
work.x *= scale;