[vlc-devel] [PATCH] dbus control: Support Raise command

Jean-Baptiste Kempf jb at videolan.org
Tue Aug 9 15:15:50 CEST 2016


On 09 Aug, Kai Uwe Broulik wrote :
> The infrastructure for bringing the window to the front was already in place
> but it would not open the window when it was hidden in e.g. the system tray.
> This patch addresses this and changes CanRaise to return true.

Well, you change setRaise, that is called by showVideo().

Are you _sure_ that is the correct way in those cases?


>  void MainInterface::setRaise()
>  {
> +    if( isHidden() )
> +    {
> +        show();
> +    }
> +    else if( isMinimized() )
> +    {
> +        showNormal();
> +    }
> +
>      activateWindow();
>      raise();
>  }
> -- 
> 2.7.4
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list