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.
This commit is contained in:
parent
b46c75b16c
commit
f54b24304d
1 changed files with 2 additions and 0 deletions
|
@ -5089,6 +5089,8 @@ Internal use only, use `display-monitor-attributes-list' instead. */)
|
||||||
#elif defined HAVE_GTK3
|
#elif defined HAVE_GTK3
|
||||||
scale = gdk_screen_get_monitor_scale_factor (gscreen, i);
|
scale = gdk_screen_get_monitor_scale_factor (gscreen, i);
|
||||||
#endif
|
#endif
|
||||||
|
rec.x *= scale;
|
||||||
|
rec.y *= scale;
|
||||||
rec.width *= scale;
|
rec.width *= scale;
|
||||||
rec.height *= scale;
|
rec.height *= scale;
|
||||||
work.x *= scale;
|
work.x *= scale;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue