[vlc-devel] [PATCH] hotkeys: get the boss-key to work reliably

Steve Lhomme robux4 at ycbcr.xyz
Tue Feb 5 08:41:50 CET 2019


Hi,

This is not how key mapping should work. Looking at the code the Qt and 
OS X interfaces both handle the boss key event. If you want to handle 
the fullscreen it should be done there. But looking at the code using 
the boss key twice gets back to the previous state. That's not what your 
code does.

Also what is currently unreliable ?

On 04/02/2019 20:08, Vikalp Bhandari 97vikalp at gmail.com wrote:
> turn off fullscreen before triggering callback
> ---
>   modules/control/hotkeys.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
> index 6c60deaf09..533ff7df5a 100644
> --- a/modules/control/hotkeys.c
> +++ b/modules/control/hotkeys.c
> @@ -401,6 +401,9 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
>               var_TriggerCallback( p_playlist, "intf-toggle-fscontrol" );
>               break;
>           case ACTIONID_INTF_BOSS:
> +            if( p_vout )
> +                var_SetBool( p_vout, "fullscreen", false );
> +            var_SetBool( p_playlist, "fullscreen", false );
>               var_TriggerCallback( p_playlist, "intf-boss" );
>               break;
>           case ACTIONID_INTF_POPUP_MENU:
> -- 
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list