[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 f54b243: Scale top-left coordinates in display-monitor-attribut
From: |
Robert Pluim |
Subject: |
emacs-27 f54b243: Scale top-left coordinates in display-monitor-attributes-list |
Date: |
Tue, 7 Jan 2020 11:28:13 -0500 (EST) |
branch: emacs-27
commit f54b24304decc52defbf12576993d746e02a80ee
Author: Robert Pluim <address@hidden>
Commit: Robert Pluim <address@hidden>
Scale top-left coordinates in display-monitor-attributes-list
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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xfns.c b/src/xfns.c
index d0d5d39..276ea1c 100644
--- 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 f54b243: Scale top-left coordinates in display-monitor-attributes-list,
Robert Pluim <=