Commit 6f30e97c authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

gdkdragsource: Ensure button >= 1

So the left shift later doesn't overflow.
parent 92fd8cb8
......@@ -58,6 +58,8 @@ gtk_drag_source_gesture_begin (GtkGesture *gesture,
else
button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
g_assert (button >= 1);
if (!site->start_button_mask ||
!(site->start_button_mask & (GDK_BUTTON1_MASK << (button - 1))))
gtk_gesture_set_state (gesture, GTK_EVENT_SEQUENCE_DENIED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment