debian/changelog                                                               
|    7 
 debian/patches/03_xrandr-Update-keystone-program-to-run-with-new-nichrome.diff 
|   76 ++++++++++
 debian/patches/series                                                          
|    1 
 3 files changed, 84 insertions(+)

New commits:
commit 3017fc34ae7bb2cb7908a0035a76bf5042b1e0e3
Author: Julien Cristau <[email protected]>
Date:   Tue May 1 10:35:53 2012 +0200

    Upload to unstable

diff --git a/debian/changelog b/debian/changelog
index 96bd8c0..a41f831 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
-x11-xserver-utils (7.7~2) UNRELEASED; urgency=low
+x11-xserver-utils (7.7~2) unstable; urgency=low
 
   * xrandr: update keystone program to run with new nichrome bits
     (cherry-picked from upstream git)
 
- -- Julien Cristau <[email protected]>  Tue, 01 May 2012 10:28:42 +0200
+ -- Julien Cristau <[email protected]>  Tue, 01 May 2012 10:35:40 +0200
 
 x11-xserver-utils (7.7~1) unstable; urgency=low
 

commit 801eaeb377246e5f2f3e63bdf6f432eb960c1c74
Author: Julien Cristau <[email protected]>
Date:   Tue May 1 10:29:27 2012 +0200

    xrandr: update keystone program to run with new nichrome bits
    
    cherry-picked from upstream git

diff --git a/debian/changelog b/debian/changelog
index 613ac76..96bd8c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+x11-xserver-utils (7.7~2) UNRELEASED; urgency=low
+
+  * xrandr: update keystone program to run with new nichrome bits
+    (cherry-picked from upstream git)
+
+ -- Julien Cristau <[email protected]>  Tue, 01 May 2012 10:28:42 +0200
+
 x11-xserver-utils (7.7~1) unstable; urgency=low
 
   [ Julien Cristau ]
diff --git 
a/debian/patches/03_xrandr-Update-keystone-program-to-run-with-new-nichrome.diff
 
b/debian/patches/03_xrandr-Update-keystone-program-to-run-with-new-nichrome.diff
new file mode 100644
index 0000000..06f2f2c
--- /dev/null
+++ 
b/debian/patches/03_xrandr-Update-keystone-program-to-run-with-new-nichrome.diff
@@ -0,0 +1,76 @@
+From 8ca08e32ee7daae75992cbf1f554ca9a389e5420 Mon Sep 17 00:00:00 2001
+From: Keith Packard <[email protected]>
+Date: Wed, 29 Feb 2012 16:26:25 +1300
+Subject: [PATCH] Update keystone program to run with new nichrome bits
+
+Will also work with old nichrome bits.
+
+Signed-off-by: Keith Packard <[email protected]>
+---
+ keystone.5c |   15 ++++++++++-----
+ 1 file changed, 10 insertions(+), 5 deletions(-)
+
+diff --git a/xrandr/keystone.5c b/xrandr/keystone.5c
+index 228c020..c616f12 100644
+--- a/xrandr/keystone.5c
++++ b/xrandr/keystone.5c
+@@ -37,7 +37,7 @@ extend namespace Nichrome {
+           rgba_color_t    corner_color;
+           bool            down;
+           bool            started;
+-          int             active;
++          int             active_corner;
+           void(&quad_t)   callback;
+       } quad_t;
+ 
+@@ -49,6 +49,10 @@ extend namespace Nichrome {
+           }
+       }
+ 
++      protected void natural (cairo_t cr, &quad_t quad) {
++          rectangle (cr, 0, 0, 256, 256);
++      }
++
+       void text_at (cairo_t cr, point_t p, string text) {
+           text_extents_t  e = text_extents (cr, text);
+           p.x = p.x - e.width / 2 - e.x_bearing;
+@@ -102,7 +106,7 @@ extend namespace Nichrome {
+           enum switch (event.type) {
+           case press:
+               quad.down = true;
+-              quad.active = nearest (&quad, event);
++              quad.active_corner = nearest (&quad, event);
+               break;
+           case release:
+               quad.down = false;
+@@ -116,8 +120,8 @@ extend namespace Nichrome {
+           if (quad.down) {
+               motion.x = max (0, min (quad.geometry.width, motion.x));
+               motion.y = max (0, min (quad.geometry.height, motion.y));
+-              quad.p[quad.active].x = motion.x;
+-              quad.p[quad.active].y = motion.y;
++              quad.p[quad.active_corner].x = motion.x;
++              quad.p[quad.active_corner].y = motion.y;
+               quad.callback (&quad);
+               Widget::reoutline (&quad);
+               Widget::redraw (&quad);
+@@ -149,6 +153,7 @@ extend namespace Nichrome {
+           quad.button = button;
+           quad.motion = motion;
+           quad.configure = configure;
++          quad.natural = natural;
+           quad.p = (point_t[4]) {
+               { x = 0, y = 0 } ...
+           };
+@@ -161,7 +166,7 @@ extend namespace Nichrome {
+           };
+           quad.corner_diameter = 20;
+           quad.down = false;
+-          quad.active = -1;
++          quad.active_corner = -1;
+           quad.callback = callback;
+           quad.started = false;
+       }
+-- 
+1.7.10
+
diff --git a/debian/patches/series b/debian/patches/series
index 3b892b3..8962555 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01_sessreg_implement_hostname_hashing.diff
 02_xmodmap-include-config.h-before-system-headers.diff
+03_xrandr-Update-keystone-program-to-run-with-new-nichrome.diff


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to