xorg-server:

- add some patches from FC13 (disable acpi/ bg none)
This commit is contained in:
Stephan Raue 2010-05-16 10:21:28 +02:00
parent b1aaa468cc
commit 4ba880f673
2 changed files with 71 additions and 23 deletions

View File

@ -1,3 +1,17 @@
From eff3bb9c6f0b71a57705885a3fe6e6469d252d2b Mon Sep 17 00:00:00 2001
From: Fedora X Ninjas <x@fedoraproject.org>
Date: Wed, 20 Jan 2010 14:46:12 +1300
Subject: [PATCH] Add nr for background=none root
---
dix/globals.c | 1 +
dix/window.c | 12 +++++++-----
hw/xfree86/common/xf86Init.c | 11 +++++++++++
hw/xfree86/common/xf86str.h | 5 ++++-
include/opaque.h | 1 +
os/utils.c | 3 +++
6 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/dix/globals.c b/dix/globals.c diff --git a/dix/globals.c b/dix/globals.c
index c24a94f..907a5e8 100644 index c24a94f..907a5e8 100644
--- a/dix/globals.c --- a/dix/globals.c
@ -11,10 +25,10 @@ index c24a94f..907a5e8 100644
int cursorScreenDevPriv[MAXSCREENS]; int cursorScreenDevPriv[MAXSCREENS];
diff --git a/dix/window.c b/dix/window.c diff --git a/dix/window.c b/dix/window.c
index caff1cb..f343d25 100644 index caff1cb..be1d1c4 100644
--- a/dix/window.c --- a/dix/window.c
+++ b/dix/window.c +++ b/dix/window.c
@@ -466,23 +466,24 @@ InitRootWindow(WindowPtr pWin) @@ -466,22 +466,24 @@ InitRootWindow(WindowPtr pWin)
pWin->optional->cursor = rootCursor; pWin->optional->cursor = rootCursor;
rootCursor->refcnt++; rootCursor->refcnt++;
@ -24,28 +38,28 @@ index caff1cb..f343d25 100644
if (party_like_its_1989) { if (party_like_its_1989) {
MakeRootTile(pWin); MakeRootTile(pWin);
backFlag |= CWBackPixmap; backFlag |= CWBackPixmap;
+ (*pScreen->ChangeWindowAttributes)(pWin, backFlag); + pScreen->ChangeWindowAttributes(pWin, backFlag);
+ } else if (bgNoneRoot) { + } else if (bgNoneRoot) {
+ /* nothing, handled in xf86CreateRootWindow */ + /* nothing, handled in xf86CreateRootWindow */
} else { } else {
if (whiteRoot) if (whiteRoot)
pWin->background.pixel = pScreen->whitePixel; pWin->background.pixel = pScreen->whitePixel;
else else
pWin->background.pixel = pScreen->blackPixel; pWin->background.pixel = pScreen->blackPixel;
backFlag |= CWBackPixel; backFlag |= CWBackPixel;
+ (*pScreen->ChangeWindowAttributes)(pWin, backFlag); - }
}
- pWin->backingStore = defaultBackingStore; - pWin->backingStore = defaultBackingStore;
- pWin->forcedBS = (defaultBackingStore != NotUseful); - pWin->forcedBS = (defaultBackingStore != NotUseful);
- /* We SHOULD check for an error value here XXX */ - /* We SHOULD check for an error value here XXX */
- (*pScreen->ChangeWindowAttributes)(pWin, backFlag); - (*pScreen->ChangeWindowAttributes)(pWin, backFlag);
- + pScreen->ChangeWindowAttributes(pWin, backFlag);
+ }
MapWindow(pWin, serverClient); MapWindow(pWin, serverClient);
} }
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index c9baff3..81c62f2 100644 index 6707448..776b898 100644
--- a/hw/xfree86/common/xf86Init.c --- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c
@@ -77,6 +77,7 @@ @@ -77,6 +77,7 @@
@ -56,7 +70,7 @@ index c9baff3..81c62f2 100644
#include "xf86VGAarbiter.h" #include "xf86VGAarbiter.h"
#include "globals.h" #include "globals.h"
@@ -249,6 +250,7 @@ xf86CreateRootWindow(WindowPtr pWin) @@ -254,6 +255,7 @@ xf86CreateRootWindow(WindowPtr pWin)
int ret = TRUE; int ret = TRUE;
int err = Success; int err = Success;
ScreenPtr pScreen = pWin->drawable.pScreen; ScreenPtr pScreen = pWin->drawable.pScreen;
@ -64,27 +78,27 @@ index c9baff3..81c62f2 100644
RootWinPropPtr pProp; RootWinPropPtr pProp;
CreateWindowProcPtr CreateWindow = (CreateWindowProcPtr) CreateWindowProcPtr CreateWindow = (CreateWindowProcPtr)
dixLookupPrivate(&pScreen->devPrivates, xf86CreateRootWindowKey); dixLookupPrivate(&pScreen->devPrivates, xf86CreateRootWindowKey);
@@ -300,6 +302,15 @@ xf86CreateRootWindow(WindowPtr pWin) @@ -305,6 +307,15 @@ xf86CreateRootWindow(WindowPtr pWin)
} }
} }
+ if (bgNoneRoot && pScrn->canDoBGNoneRoot || 1) { + if (bgNoneRoot && pScrn->canDoBGNoneRoot) {
+ pWin->backgroundState = XaceBackgroundNoneState(pWin); + pWin->backgroundState = XaceBackgroundNoneState(pWin);
+ pWin->background.pixel = pScreen->whitePixel; + pWin->background.pixel = pScreen->whitePixel;
+ pScreen->ChangeWindowAttributes(pWin, CWBackPixmap | CWBorderPixel | CWCursor | CWBackingStore); + pScreen->ChangeWindowAttributes(pWin, CWBackPixmap | CWBorderPixel | CWCursor | CWBackingStore);
+ } else { + } else {
+ pWin->background.pixel = pScreen->blackPixel; + pWin->background.pixel = pScreen->blackPixel;
+ pScreen->ChangeWindowAttributes(pWin, CWBackPixel | CWBorderPixel | CWCursor | CWBackingStore); + pScreen->ChangeWindowAttributes(pWin, CWBackPixel | CWBorderPixel | CWCursor | CWBackingStore);
+ } + }
+ +
DebugF("xf86CreateRootWindow() returns %d\n", ret); DebugF("xf86CreateRootWindow() returns %d\n", ret);
return (ret); return (ret);
} }
diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h
index b9a2e06..fd28664 100644 index de1f1b6..5c3aa00 100644
--- a/hw/xfree86/common/xf86str.h --- a/hw/xfree86/common/xf86str.h
+++ b/hw/xfree86/common/xf86str.h +++ b/hw/xfree86/common/xf86str.h
@@ -516,7 +516,7 @@ typedef struct _confdrirec { @@ -503,7 +503,7 @@ typedef struct _confdrirec {
} confDRIRec, *confDRIPtr; } confDRIRec, *confDRIPtr;
/* These values should be adjusted when new fields are added to ScrnInfoRec */ /* These values should be adjusted when new fields are added to ScrnInfoRec */
@ -93,12 +107,12 @@ index b9a2e06..fd28664 100644
#define NUM_RESERVED_POINTERS 14 #define NUM_RESERVED_POINTERS 14
#define NUM_RESERVED_FUNCS 11 #define NUM_RESERVED_FUNCS 11
@@ -788,6 +788,9 @@ typedef struct _ScrnInfoRec { @@ -775,6 +775,9 @@ typedef struct _ScrnInfoRec {
ClockRangesPtr clockRanges; ClockRangePtr clockRanges;
int adjustFlags; int adjustFlags;
+ /* -nr support */ + /* -nr support */
+ int canDoBGNoneRoot; + int canDoBGNoneRoot;
+ +
/* /*
* These can be used when the minor ABI version is incremented. * These can be used when the minor ABI version is incremented.
@ -116,7 +130,7 @@ index b3c7c70..fcc8c95 100644
extern _X_EXPORT Bool CoreDump; extern _X_EXPORT Bool CoreDump;
diff --git a/os/utils.c b/os/utils.c diff --git a/os/utils.c b/os/utils.c
index 3718b17..52e30d3 100644 index d7c8388..40583d0 100644
--- a/os/utils.c --- a/os/utils.c
+++ b/os/utils.c +++ b/os/utils.c
@@ -513,6 +513,7 @@ void UseMsg(void) @@ -513,6 +513,7 @@ void UseMsg(void)
@ -136,3 +150,6 @@ index 3718b17..52e30d3 100644
else if ( strcmp( argv[i], "-maxbigreqsize") == 0) { else if ( strcmp( argv[i], "-maxbigreqsize") == 0) {
if(++i < argc) { if(++i < argc) {
long reqSizeArg = atol(argv[i]); long reqSizeArg = atol(argv[i]);
--
1.6.6

View File

@ -0,0 +1,31 @@
From a8079882f1884edc62a9de28af915bd8b65dfbbe Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Wed, 11 Mar 2009 14:02:11 -0400
Subject: [PATCH] Don't build the ACPI code.
No good can come of this.
---
configure.ac | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 72ae67e..04716f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1269,13 +1269,11 @@ if test "x$XORG" = xyes; then
case $host_cpu in
ia64*)
linux_ia64=yes
- linux_acpi="yes"
;;
alpha*)
linux_alpha=yes
;;
i*86|amd64*|x86_64*)
- linux_acpi="yes"
;;
*)
;;
--
1.6.1.3