xserver: Branch 'master'

Adam Jackson ajax at kemper.freedesktop.org
Mon Sep 22 07:54:15 PDT 2008


 dix/globals.c       |    4 ++--
 dix/window.c        |   11 +++++------
 doc/Xserver.man.pre |    5 +++++
 include/opaque.h    |    2 +-
 os/utils.c          |    6 ++++--
 xfixes/cursor.c     |    3 +++
 6 files changed, 20 insertions(+), 11 deletions(-)

New commits:
commit 0bb317a78b96fddcdac319c9706b3a12f931ea44
Author: Adam Jackson <ajax at redhat.com>
Date:   Mon Sep 22 10:51:51 2008 -0400

    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().

diff --git a/dix/globals.c b/dix/globals.c
index 80a9ff5..60fd9a9 100644
--- a/dix/globals.c
+++ b/dix/globals.c
@@ -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];
 
diff --git a/dix/window.c b/dix/window.c
index b588f44..6cba23d 100644
--- a/dix/window.c
+++ b/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;
     } 
 
diff --git a/doc/Xserver.man.pre b/doc/Xserver.man.pre
index 8fe3b76..6cf08ce 100644
--- a/doc/Xserver.man.pre
+++ b/doc/Xserver.man.pre
@@ -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
diff --git a/include/opaque.h b/include/opaque.h
index ab39cc8..07a0715 100644
--- a/include/opaque.h
+++ b/include/opaque.h
@@ -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;
diff --git a/os/utils.c b/os/utils.c
index bf52ea0..709b5df 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -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)
diff --git a/xfixes/cursor.c b/xfixes/cursor.c
index c4069d9..4b85b70 100755
--- a/xfixes/cursor.c
+++ b/xfixes/cursor.c
@@ -1060,6 +1060,9 @@ Bool
 XFixesCursorInit (void)
 {
     int	i;
+
+    if (party_like_its_1989)
+	CursorVisible = TRUE;
     
     for (i = 0; i < screenInfo.numScreens; i++)
     {


More information about the xorg-commit mailing list