diff options
author | Victor Kareh <[email protected]> | 2018-02-26 15:41:13 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-13 08:56:20 +0100 |
commit | 06c84c7c7b037ce6093d2970115de9c5d2f9f422 (patch) | |
tree | 3e0438a7bd4d76b4bd9e6fc87a46c9dd1954e755 | |
parent | 3d153082f28d08a8e84eff597ebdd24bac10a0e1 (diff) | |
download | mate-panel-06c84c7c7b037ce6093d2970115de9c5d2f9f422.tar.bz2 mate-panel-06c84c7c7b037ce6093d2970115de9c5d2f9f422.tar.xz |
Do not down-scale monitor geometries for GDK monitors
-rw-r--r-- | mate-panel/panel-multiscreen.c | 17 |
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; |