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

Steve Lhomme robux4 at ycbcr.xyz
Mon Feb 11 07:53:35 CET 2019


On 08/02/2019 06:06, vikalp bhandari wrote:
> Hi
>
> You are saying that macos or qt code should be used to handle the 
> fullscreen bug right?

Yes. If you look at the MainInterface::setBoss() this is where the logic 
of the boss key is handled. If you need additional actions it should 
probably be there.

We don't do actions in key handlers so they can be mapped to other actions.

>
> Here is the issue  documented: 
> https://forum.videolan.org/viewtopic.php?t=146196
>
> I did not understand your previous mail fully please comment whenever 
> you have time
>
> Thanks
>
> On Tue, 5 Feb 2019, 13:12 Steve Lhomme, <robux4 at ycbcr.xyz 
> <mailto:robux4 at ycbcr.xyz>> wrote:
>
>     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
>     <mailto: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
>
>     _______________________________________________
>     vlc-devel mailing list
>     To unsubscribe or modify your subscription options:
>     https://mailman.videolan.org/listinfo/vlc-devel
>
>
> _______________________________________________
> 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