summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-02-26 15:41:13 -0500
committerVictor Kareh <[email protected]>2018-02-26 15:41:13 -0500
commita00f2c96e94c41cd405709e51bf3f4b23f1f6dd6 (patch)
treea4ed5505d5ac778bededf1f46078ba41708c02d5
parent87a376956154563d72192f74608b46622aaa753a (diff)
downloadmate-panel-a00f2c96e94c41cd405709e51bf3f4b23f1f6dd6.tar.bz2
mate-panel-a00f2c96e94c41cd405709e51bf3f4b23f1f6dd6.tar.xz
Do not down-scale monitor geometries for GDK monitors
-rw-r--r--mate-panel/panel-multiscreen.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/mate-panel/panel-multiscreen.c b/mate-panel/panel-multiscreen.c
index 4aabe77d..04f42666 100644
--- a/mate-panel/panel-multiscreen.c
+++ b/mate-panel/panel-multiscreen.c
@@ -219,21 +219,8 @@ panel_multiscreen_get_gdk_monitors_for_screen (GdkScreen *screen,
num_monitors = gdk_display_get_n_monitors (display);
geometries = g_new (GdkRectangle, num_monitors);
- for (i = 0; i < num_monitors; i++) {
- GdkMonitor *monitor;
- int scale;
-
- monitor = gdk_display_get_monitor (display, i);
- scale = gdk_monitor_get_scale_factor (monitor);
-
- gdk_monitor_get_geometry (monitor, &(geometries[i]));
-
- /* Scale geometries down to device pixels to support HiDPI displays */
- geometries[i].x /= scale;
- geometries[i].y /= scale;
- geometries[i].width /= scale;
- geometries[i].height /= scale;
- }
+ for (i = 0; i < num_monitors; i++)
+ gdk_monitor_get_geometry (gdk_display_get_monitor (display, i), &(geometries[i]));
*monitors_ret = num_monitors;
*geometries_ret = geometries;