[nautilus] eel-canvas: fix double tap with touchscreen devices



commit d486af277f491ff5cfcfa254ebce618cd41a3edb
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Feb 14 20:01:22 2013 -0500

    eel-canvas: fix double tap with touchscreen devices
    
    Code here is not doing what the comment (and the symmetric part in
    the RELEASE case) says.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688281

 eel/eel-canvas.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 4fdef13..7ebd6cc 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -2668,9 +2668,11 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
                /* Pick the current item as if the button were not pressed, and
                 * then process the event.
                 */
+               event->state ^= mask;
                canvas->state = event->state;
                pick_current_item (canvas, (GdkEvent *) event);
-               canvas->state ^= mask;
+               event->state ^= mask;
+               canvas->state = event->state;
                retval = emit_event (canvas, (GdkEvent *) event);
                break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]