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
|
FontPtr defaultFont; /* not declared in dix.h to avoid including font.h in
|
||||||
every compilation of dix code */
|
every compilation of dix code */
|
||||||
CursorPtr rootCursor;
|
CursorPtr rootCursor;
|
||||||
Bool blackRoot=FALSE;
|
Bool party_like_its_1989 = FALSE;
|
||||||
Bool whiteRoot=FALSE;
|
Bool whiteRoot = FALSE;
|
||||||
|
|
||||||
_X_EXPORT int cursorScreenDevPriv[MAXSCREENS];
|
_X_EXPORT int cursorScreenDevPriv[MAXSCREENS];
|
||||||
|
|
||||||
|
|
11
dix/window.c
11
dix/window.c
|
@ -486,15 +486,14 @@ InitRootWindow(WindowPtr pWin)
|
||||||
rootCursor->refcnt++;
|
rootCursor->refcnt++;
|
||||||
|
|
||||||
|
|
||||||
if (!blackRoot && !whiteRoot) {
|
if (party_like_its_1989) {
|
||||||
MakeRootTile(pWin);
|
MakeRootTile(pWin);
|
||||||
backFlag |= CWBackPixmap;
|
backFlag |= CWBackPixmap;
|
||||||
}
|
} else {
|
||||||
else {
|
if (whiteRoot)
|
||||||
if (blackRoot)
|
|
||||||
pWin->background.pixel = pScreen->blackPixel;
|
|
||||||
else
|
|
||||||
pWin->background.pixel = pScreen->whitePixel;
|
pWin->background.pixel = pScreen->whitePixel;
|
||||||
|
else
|
||||||
|
pWin->background.pixel = pScreen->blackPixel;
|
||||||
backFlag |= CWBackPixel;
|
backFlag |= CWBackPixel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -219,6 +219,11 @@ turns off auto-repeat.
|
||||||
.B r
|
.B r
|
||||||
turns on auto-repeat.
|
turns on auto-repeat.
|
||||||
.TP 8
|
.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
|
.B \-s \fIminutes\fP
|
||||||
sets screen-saver timeout time in minutes.
|
sets screen-saver timeout time in minutes.
|
||||||
.TP 8
|
.TP 8
|
||||||
|
|
|
@ -69,7 +69,7 @@ extern int limitNoFile;
|
||||||
#endif
|
#endif
|
||||||
extern Bool defeatAccessControl;
|
extern Bool defeatAccessControl;
|
||||||
extern long maxBigRequestSize;
|
extern long maxBigRequestSize;
|
||||||
extern Bool blackRoot;
|
extern Bool party_like_its_1989;
|
||||||
extern Bool whiteRoot;
|
extern Bool whiteRoot;
|
||||||
|
|
||||||
extern Bool CoreDump;
|
extern Bool CoreDump;
|
||||||
|
|
|
@ -533,6 +533,7 @@ void UseMsg(void)
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
ErrorF("-render [default|mono|gray|color] set render color alloc policy\n");
|
ErrorF("-render [default|mono|gray|color] set render color alloc policy\n");
|
||||||
#endif
|
#endif
|
||||||
|
ErrorF("-retro start with classic stipple and cursor\n");
|
||||||
ErrorF("-s # screen-saver timeout (minutes)\n");
|
ErrorF("-s # screen-saver timeout (minutes)\n");
|
||||||
ErrorF("-t # mouse threshold (pixels)\n");
|
ErrorF("-t # mouse threshold (pixels)\n");
|
||||||
ErrorF("-terminate terminate at server reset\n");
|
ErrorF("-terminate terminate at server reset\n");
|
||||||
|
@ -641,8 +642,7 @@ ProcessCommandLine(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
UseMsg();
|
UseMsg();
|
||||||
}
|
}
|
||||||
else if ( strcmp( argv[i], "-br") == 0)
|
else if ( strcmp( argv[i], "-br") == 0) ; /* default */
|
||||||
blackRoot = TRUE;
|
|
||||||
else if ( strcmp( argv[i], "+bs") == 0)
|
else if ( strcmp( argv[i], "+bs") == 0)
|
||||||
enableBackingStore = TRUE;
|
enableBackingStore = TRUE;
|
||||||
else if ( strcmp( argv[i], "-bs") == 0)
|
else if ( strcmp( argv[i], "-bs") == 0)
|
||||||
|
@ -828,6 +828,8 @@ ProcessCommandLine(int argc, char *argv[])
|
||||||
defaultKeyboardControl.autoRepeat = TRUE;
|
defaultKeyboardControl.autoRepeat = TRUE;
|
||||||
else if ( strcmp( argv[i], "-r") == 0)
|
else if ( strcmp( argv[i], "-r") == 0)
|
||||||
defaultKeyboardControl.autoRepeat = FALSE;
|
defaultKeyboardControl.autoRepeat = FALSE;
|
||||||
|
else if ( strcmp( argv[i], "-retro") == 0)
|
||||||
|
party_like_its_1989 = TRUE;
|
||||||
else if ( strcmp( argv[i], "-s") == 0)
|
else if ( strcmp( argv[i], "-s") == 0)
|
||||||
{
|
{
|
||||||
if(++i < argc)
|
if(++i < argc)
|
||||||
|
|
|
@ -1060,6 +1060,9 @@ Bool
|
||||||
XFixesCursorInit (void)
|
XFixesCursorInit (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (party_like_its_1989)
|
||||||
|
CursorVisible = TRUE;
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numScreens; i++)
|
for (i = 0; i < screenInfo.numScreens; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue