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

vikalp bhandari 97vikalp at gmail.com
Fri Feb 8 06:06:50 CET 2019


Hi

You are saying that macos or qt code should be used to handle the
fullscreen bug right?

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> 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 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190208/24cf6ddb/attachment.html>


More information about the vlc-devel mailing list