diff options
author | Brent Bradburn <[email protected]> | 2018-02-24 14:57:52 -0700 |
---|---|---|
committer | monsta <[email protected]> | 2018-03-18 11:45:10 +0300 |
commit | da864825f4b89e666bd41cf5d4a118d1377b4f11 (patch) | |
tree | 90b1f4b77631d3ed80a174ae1cf2b1b34eef156f /capplets/display | |
parent | 4c498854d5933a72b741d0ed76df0fa79beab881 (diff) | |
download | mate-control-center-da864825f4b89e666bd41cf5d4a118d1377b4f11.tar.bz2 mate-control-center-da864825f4b89e666bd41cf5d4a118d1377b4f11.tar.xz |
Fix screen geometry to account for rotation when snapping.
Diffstat (limited to 'capplets/display')
-rw-r--r-- | capplets/display/xrandr-capplet.c | 2 |
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 |