summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-02-14 20:01:22 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2013-03-08 15:25:40 -0500
commitd486af277f491ff5cfcfa254ebce618cd41a3edb (patch)
tree08678c1ba29dd10f7bad4fe6b34974bc66233e00 /eel
parent55fb77418a07cfe0ef8a1ee3347c2e28ed0360a6 (diff)
downloadnautilus-d486af277f491ff5cfcfa254ebce618cd41a3edb.tar.gz
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
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 4fdef1312..7ebd6ccd6 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;