mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-23 23:30:02 +00:00
dix: move alwaysCheckForInput declaration to first use
Move the declaration of alwaysCheckForInput closer to where it is first used and initialize it at declaration rather than assigning it later. Signed-off-by: Aggelos Tselios <aggelostselios777@gmail.com>
This commit is contained in:
committed by
Enrico Weigelt
parent
bd3e74e1b1
commit
729f471b9e
@@ -134,7 +134,6 @@ CallbackListPtr PostInitRootWindowCallback = NULL;
|
||||
int
|
||||
dix_main(int argc, char *argv[], char *envp[])
|
||||
{
|
||||
HWEventQueueType alwaysCheckForInput[2];
|
||||
|
||||
display = "0";
|
||||
|
||||
@@ -146,9 +145,6 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||
|
||||
ProcessCommandLine(argc, argv);
|
||||
|
||||
alwaysCheckForInput[0] = 0;
|
||||
alwaysCheckForInput[1] = 1;
|
||||
|
||||
ScreenSaverTime = defaultScreenSaverTime;
|
||||
ScreenSaverInterval = defaultScreenSaverInterval;
|
||||
ScreenSaverBlanking = defaultScreenSaverBlanking;
|
||||
@@ -184,6 +180,7 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||
if (!InitClientResources(serverClient)) /* for root resources */
|
||||
FatalError("couldn't init server resources");
|
||||
|
||||
HWEventQueueType alwaysCheckForInput[2] = { 0, 1 };
|
||||
SetInputCheck(&alwaysCheckForInput[0], &alwaysCheckForInput[1]);
|
||||
screenInfo.numScreens = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user