globalhotkeys: start the win32 hotkeys as autorun

Just like the XCB ones. The autorun is used when using the default interface.
This commit is contained in:
Steve Lhomme 2024-01-31 08:57:45 +01:00 committed by Jean-Baptiste Kempf
parent 8f1439234b
commit 7befacddeb
1 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,11 @@ static void Close( vlc_object_t *p_this );
static void *Thread( void *p_data );
LRESULT CALLBACK WMHOTKEYPROC( HWND, UINT, WPARAM, LPARAM );
static void AutoRun(libvlc_int_t *libvlc)
{
intf_Create(libvlc, MODULE_STRING);
}
/*****************************************************************************
* Module descriptor
*****************************************************************************/
@ -52,6 +57,10 @@ vlc_module_begin()
set_capability( "interface", 0 )
set_callbacks( Open, Close )
add_shortcut( "globalhotkeys" )
add_submodule()
set_capability("autorun", 10)
set_callback(AutoRun)
vlc_module_end()
struct intf_sys_t