Apparently the button events tend to be stuck and not properly
propagated, so we resort to emitting the signal ourselves.
MidoriBrowser *browser)
{
/* A button was pressed */
- if (event->type == GDK_BUTTON_PRESS)
+ if (event->type == GDK_BUTTON_PRESS && event->button.button == 2)
{
/* If the gesture was previously cleaned, start a new gesture and coordinates */
if (gesture->last == MOUSE_BUTTON_UNSET)
return TRUE;
}
+ /* We propagate the event, since it may otherwise be stuck in WebKit */
+ g_signal_emit_by_name (view, "event", event, &background);
+
return FALSE;
}