/* XXX: new message passing stuff will go here */
vlc_mutex_t change_lock;
- bool b_menu_change;
bool b_menu;
};
{
case AA_MOUSE:
aa_getmouse( p_vout->p_sys->aa_context, &x, &y, &b );
- if ( b & AA_BUTTON3 )
- {
- intf_thread_t *p_intf;
- p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF, FIND_ANYWHERE );
- if( p_intf )
- {
- p_intf->b_menu_change = 1;
- vlc_object_release( p_intf );
- }
- }
+ /*if ( b & AA_BUTTON3 )
+ trigger contextual menu here */
break;
case AA_RESIZE:
p_vout->i_changes |= VOUT_SIZE_CHANGE;
break;
case GII_PBUTTON_RIGHT:
- {
- intf_thread_t *p_intf;
- p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
- FIND_ANYWHERE );
- if( p_intf )
- {
- p_intf->b_menu_change = 1;
- vlc_object_release( p_intf );
- }
- }
+ /* trigger contextual menu here */
break;
}
break;
case SDL_BUTTON_RIGHT:
{
- intf_thread_t *p_intf;
-
var_Get( p_vout, "mouse-button-down", &val );
val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val );
- p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
- FIND_ANYWHERE );
- if( p_intf )
- {
- p_intf->b_menu_change = 1;
- vlc_object_release( p_intf );
- }
val.b_bool = true;
var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
var_Get( p_vout, "mouse-button-down", &val );
val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val );
- p_intf = vlc_object_find( p_vout, VLC_OBJECT_INTF,
- FIND_ANYWHERE );
- if( p_intf )
- {
- p_intf->b_menu_change = 1;
- vlc_object_release( p_intf );
- }
vlc_value_t val; val.b_bool = true;
var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
/* Initialize structure */
p_intf->b_menu = false;
- p_intf->b_menu_change = false;
/* Initialize mutexes */
vlc_mutex_init( &p_intf->change_lock );