Skip to content
Permalink
Browse files

Fix screen geometry to account for rotation when snapping.

  • Loading branch information...
BrentBradburn authored and monsta committed Feb 24, 2018
1 parent 4c49885 commit da864825f4b89e666bd41cf5d4a118d1377b4f11
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit da86482

Please sign in to comment.
You can’t perform that action at this time.