Default to -br. Add -retro option for the nostalgic.
-retro also reverts to the classic cursor display behavior, meaning, the cursor will be visible before anyone calls XDefineCursor().
This commit is contained in:
parent
ab17f88506
commit
0bb317a78b
|
@ -139,8 +139,8 @@ char *defaultCursorFont = COMPILEDCURSORFONT;
|
|||
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
|
||||
every compilation of dix code */
|
||||
CursorPtr rootCursor;
|
||||
Bool blackRoot=FALSE;
|
||||
Bool whiteRoot=FALSE;
|
||||
Bool party_like_its_1989 = FALSE;
|
||||
Bool whiteRoot = FALSE;
|
||||
|
||||
_X_EXPORT int cursorScreenDevPriv[MAXSCREENS];
|
||||
|
||||
|
|
11
dix/window.c
11
dix/window.c
|
@ -486,15 +486,14 @@ InitRootWindow(WindowPtr pWin)
|
|||
rootCursor->refcnt++;
|
||||
|
||||
|
||||
if (!blackRoot && !whiteRoot) {
|
||||
if (party_like_its_1989) {
|
||||
MakeRootTile(pWin);
|
||||
backFlag |= CWBackPixmap;
|
||||
}
|
||||
else {
|
||||
if (blackRoot)
|
||||
pWin->background.pixel = pScreen->blackPixel;
|
||||
else
|
||||
} else {
|
||||
if (whiteRoot)
|
||||
pWin->background.pixel = pScreen->whitePixel;
|
||||
else
|
||||
pWin->background.pixel = pScreen->blackPixel;
|
||||
backFlag |= CWBackPixel;
|
||||
}
|
||||
|
||||
|
|
|
@ -219,6 +219,11 @@ turns off auto-repeat.
|
|||
.B r
|
||||
turns on auto-repeat.
|
||||
.TP 8
|
||||
.B -retro
|
||||
starts the stipple with the classic stipple and cursor visible. The default
|
||||
is to start with a black root window, and to suppress display of the cursor
|
||||
until the first time an application calls XDefineCursor().
|
||||
.TP 8
|
||||
.B \-s \fIminutes\fP
|
||||
sets screen-saver timeout time in minutes.
|
||||
.TP 8
|
||||
|
|
|
@ -69,7 +69,7 @@ extern int limitNoFile;
|
|||
#endif
|
||||
extern Bool defeatAccessControl;
|
||||
extern long maxBigRequestSize;
|
||||
extern Bool blackRoot;
|
||||
extern Bool party_like_its_1989;
|
||||
extern Bool whiteRoot;
|
||||
|
||||
extern Bool CoreDump;
|
||||
|
|
|
@ -533,6 +533,7 @@ void UseMsg(void)
|
|||
#ifdef RENDER
|
||||
ErrorF("-render [default|mono|gray|color] set render color alloc policy\n");
|
||||
#endif
|
||||
ErrorF("-retro start with classic stipple and cursor\n");
|
||||
ErrorF("-s # screen-saver timeout (minutes)\n");
|
||||
ErrorF("-t # mouse threshold (pixels)\n");
|
||||
ErrorF("-terminate terminate at server reset\n");
|
||||
|
@ -641,8 +642,7 @@ ProcessCommandLine(int argc, char *argv[])
|
|||
else
|
||||
UseMsg();
|
||||
}
|
||||
else if ( strcmp( argv[i], "-br") == 0)
|
||||
blackRoot = TRUE;
|
||||
else if ( strcmp( argv[i], "-br") == 0) ; /* default */
|
||||
else if ( strcmp( argv[i], "+bs") == 0)
|
||||
enableBackingStore = TRUE;
|
||||
else if ( strcmp( argv[i], "-bs") == 0)
|
||||
|
@ -828,6 +828,8 @@ ProcessCommandLine(int argc, char *argv[])
|
|||
defaultKeyboardControl.autoRepeat = TRUE;
|
||||
else if ( strcmp( argv[i], "-r") == 0)
|
||||
defaultKeyboardControl.autoRepeat = FALSE;
|
||||
else if ( strcmp( argv[i], "-retro") == 0)
|
||||
party_like_its_1989 = TRUE;
|
||||
else if ( strcmp( argv[i], "-s") == 0)
|
||||
{
|
||||
if(++i < argc)
|
||||
|
|
|
@ -1060,6 +1060,9 @@ Bool
|
|||
XFixesCursorInit (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (party_like_its_1989)
|
||||
CursorVisible = TRUE;
|
||||
|
||||
for (i = 0; i < screenInfo.numScreens; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user