[gtk+/gtk-3-14] gtkwindow: claim the press sequence when clicking on the titlebar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] gtkwindow: claim the press sequence when clicking on the titlebar
- Date: Thu, 11 Dec 2014 14:30:01 +0000 (UTC)
commit b8a154ad69826b94f8e138cf4e262dd31e6b887f
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 7 12:55:52 2014 +0100
gtkwindow: claim the press sequence when clicking on the titlebar
This event might not have an action yet, but certainly accounts, and
should be triggering recognition.
This fixes a crash when attempting to drag CSD windows through touch. As
since cfaec2d2f542, gtk_gesture_single_get_current_sequence() would
rightfully return NULL if the gesture didn't enter recognition, making
event lookup fail.
gtk/gtkwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 7b811e6..d6d3b4a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1469,6 +1469,9 @@ multipress_gesture_pressed_cb (GtkGestureMultiPress *gesture,
gtk_window_titlebar_action (window, event, button, n_press);
if (n_press == 1)
priv->drag_possible = TRUE;
+
+ gtk_gesture_set_sequence_state (GTK_GESTURE (gesture),
+ sequence, GTK_EVENT_SEQUENCE_CLAIMED);
break;
default:
if (!priv->maximized)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]