[mate-control-center] 01/02: debian/patches: Add 0001_fix_screen_geometry_when_snapping.patch. Fix screen geometry to account for rotation when snapping.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Sun Mar 18 18:36:02 UTC 2018


This is an automated email from the git hooks/post-receive script.

flexiondotorg-guest pushed a commit to branch master
in repository mate-control-center.

commit e931d1a782d0be6fb63db4613a7468035dc0a941
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Sun Mar 18 15:34:30 2018 +0000

    debian/patches: Add 0001_fix_screen_geometry_when_snapping.patch. Fix screen geometry to account for rotation when snapping.
---
 .../0001_fix_screen_geometry_when_snapping.patch   | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/0001_fix_screen_geometry_when_snapping.patch b/debian/patches/0001_fix_screen_geometry_when_snapping.patch
new file mode 100644
index 0000000..b7e51dd
--- /dev/null
+++ b/debian/patches/0001_fix_screen_geometry_when_snapping.patch
@@ -0,0 +1,23 @@
+Author: Brent Bradburn
+Description: Fix screen geometry to account for rotation when snapping.
+
+diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
+index 7089a24..a2078a6 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
diff --git a/debian/patches/series b/debian/patches/series
index 8f7d3a1..613e9a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0000_hidpi.patch
+0001_fix_screen_geometry_when_snapping.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-control-center.git



More information about the pkg-mate-commits mailing list