summaryrefslogtreecommitdiff
path: root/capplets/display/xrandr-capplet.c
diff options
context:
space:
mode:
authorBrent Bradburn <[email protected]>2018-02-24 14:57:52 -0700
committermonsta <[email protected]>2018-03-18 11:45:57 +0300
commit68c35f2604b9923136e128d6218dd7e50def138a (patch)
treed2308a8b49e5d6f71dcfff695d701a39dc3b1181 /capplets/display/xrandr-capplet.c
parent2151cb4b30c5b07ace23278b6aeeb82308482f55 (diff)
downloadmate-control-center-68c35f2604b9923136e128d6218dd7e50def138a.tar.bz2
mate-control-center-68c35f2604b9923136e128d6218dd7e50def138a.tar.xz
Fix screen geometry to account for rotation when snapping.
Diffstat (limited to 'capplets/display/xrandr-capplet.c')
-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 4a538f43..7705b2d6 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