Commit f54b2430 authored by Robert Pluim's avatar Robert Pluim

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

* xfns.c (Fx_display_monitor_attributes_list): Scale top-left
parent b46c75b1
Pipeline #4507 passed with stage
in 56 minutes and 55 seconds
......@@ -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);
rec.x *= scale;
rec.y *= scale;
rec.width *= scale;
rec.height *= scale;
work.x *= scale;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment