From da864825f4b89e666bd41cf5d4a118d1377b4f11 Mon Sep 17 00:00:00 2001 From: Brent Bradburn <36802481+BrentBradburn@users.noreply.github.com> Date: Sat, 24 Feb 2018 14:57:52 -0700 Subject: Fix screen geometry to account for rotation when snapping. --- capplets/display/xrandr-capplet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 7089a24e..a2078a60 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -1153,6 +1153,7 @@ list_edges_for_output (MateRROutputInfo *output, GArray *edges) int x, y, w, h; mate_rr_output_info_get_geometry (output, &x, &y, &w, &h); + get_geometry(output, &w, &h); // accounts for rotation /* Top, Bottom, Left, Right */ add_edge (output, x, y, x + w, y, edges); @@ -1351,6 +1352,7 @@ static void get_output_rect (MateRROutputInfo *output, GdkRectangle *rect) { mate_rr_output_info_get_geometry (output, &rect->x, &rect->y, &rect->width, &rect->height); + get_geometry (output, &rect->width, &rect->height); // accounts for rotation } static gboolean -- cgit v1.2.1