mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-29 18:10:29 +01:00
Add runtime arguments "-keyhook" and "-nokeyhook" (default).
This commit is contained in:
parent
6e72967113
commit
da5e6df20d
2 changed files with 14 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ Bool g_fLogInited = FALSE;
|
|||
char * g_pszCommandLine = NULL;
|
||||
Bool g_fUseMsg = FALSE;
|
||||
DWORD g_dwCurrentThreadID = 0;
|
||||
Bool g_fKeyboardHookLL = TRUE;
|
||||
Bool g_fKeyboardHookLL = FALSE;
|
||||
HHOOK g_hhookKeyboardLL = NULL;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ extern int g_iLogVerbose;
|
|||
extern char * g_pszLogFile;
|
||||
extern Bool g_fXdmcpEnabled;
|
||||
extern char * g_pszCommandLine;
|
||||
extern Bool g_fKeyboardHookLL;
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -1107,6 +1108,18 @@ ddxProcessArgument (int argc, char *argv[], int i)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (IS_OPTION ("-keyhook"))
|
||||
{
|
||||
g_fKeyboardHookLL = TRUE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (IS_OPTION ("-nokeyhook"))
|
||||
{
|
||||
g_fKeyboardHookLL = FALSE;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue