Moving into a different soft button's area during drag-n-drop would trigger
a click of that button.

http://bugzilla.redhat.com/819348

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/synaptics.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index 7881926..e47d8ff 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2539,7 +2539,7 @@ update_hw_button_state(const InputInfoPtr pInfo, struct 
SynapticsHwState *hw,
 
     /* If this is a clickpad and the user clicks in a soft button area, press
      * the soft button instead. */
-    if (para->clickpad && hw->left && !hw->right && !hw->middle) {
+    if (para->clickpad && hw->left && !hw->right && !hw->middle && !old->left) 
{
         if (is_inside_rightbutton_area(para, hw->x, hw->y)) {
             hw->left = 0;
             hw->right = 1;
-- 
1.7.10.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to