Signed-off-by: Lauren Post <[email protected]>
---
 ...lose-button-do-not-response-to-multitouch.patch |   37 ++++++++++++++++++++
 .../matchbox-wm/matchbox-wm_%.bbappend             |    3 ++
 2 files changed, 40 insertions(+)
 create mode 100644 
recipes-graphics/matchbox-wm/matchbox-wm/fix-close-button-do-not-response-to-multitouch.patch
 create mode 100644 recipes-graphics/matchbox-wm/matchbox-wm_%.bbappend

diff --git 
a/recipes-graphics/matchbox-wm/matchbox-wm/fix-close-button-do-not-response-to-multitouch.patch
 
b/recipes-graphics/matchbox-wm/matchbox-wm/fix-close-button-do-not-response-to-multitouch.patch
new file mode 100644
index 0000000..f404a10
--- /dev/null
+++ 
b/recipes-graphics/matchbox-wm/matchbox-wm/fix-close-button-do-not-response-to-multitouch.patch
@@ -0,0 +1,37 @@
+matchbox-wm:  Fix to support closing windows in multi-touch panels
+
+In many applications, the close is not recognized because the sub window class 
is NULL
+This calculates coordinates to track close touch actions in the area to 
respond.
+
+Upstream Status: Not applicable
+
+diff --git a/src/client_common.c b/src/client_common.c
+index 2b62024..30724c1 100644
+--- a/src/client_common.c
++++ b/src/client_common.c
+@@ -779,10 +779,24 @@ client_get_button_list_item_from_event(Client *c, 
XButtonEvent *e)
+ {
+   struct list_item *l = c->buttons;
+   MBClientButton   *b = NULL;
+-
++  int dx, dy;
+   while (l != NULL)
+     {
+       b = (MBClientButton *)l->data;
++        if (e->subwindow == 0)
++        {
++              dx = (e->x - b->x - b->w/2) > 0 ? \
++                       (e->x - b->x - b->w/2) : \
++                       (b->x + b->w/2 - e->x);
++
++              dy = (e->y - b->y - b->h/2) > 0 ? \
++                       (e->y - b->y - b->h/2) : \
++                       (b->y + b->h/2 - e->y);
++
++              if (dx <= b->w/2 && dy <= b->h/2)
++                return l;
++        }
++
+       if (b->win == e->subwindow)
+       {
+         return l;
diff --git a/recipes-graphics/matchbox-wm/matchbox-wm_%.bbappend 
b/recipes-graphics/matchbox-wm/matchbox-wm_%.bbappend
new file mode 100644
index 0000000..96647d3
--- /dev/null
+++ b/recipes-graphics/matchbox-wm/matchbox-wm_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append = " file://fix-close-button-do-not-response-to-multitouch.patch"
-- 
1.7.9.5

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to