summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Bradburn <[email protected]>2018-02-24 14:57:52 -0700
committermonsta <[email protected]>2018-03-18 11:33:42 +0300
commitb198f909d277425c60c5ea9860994d3f82f4a5e1 (patch)
treec90bad9b1a7bb4a74555ad81ecc5f6f1f5af998e
parent48b4fc3407816ddcab6e2bd20b063b6de9746e25 (diff)
downloadmate-control-center-b198f909d277425c60c5ea9860994d3f82f4a5e1.tar.bz2
mate-control-center-b198f909d277425c60c5ea9860994d3f82f4a5e1.tar.xz
Fix screen geometry to account for rotation when snapping.
-rw-r--r--capplets/display/xrandr-capplet.c2
1 files changed, 2 insertions, 0 deletions
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