* Mon Oct 27 2008 Adam Jackson <ajax@redhat.com> 1.5.2-10
- xserver-1.5.0-bg-none-root.patch: Make it something the driver has to explicitly claim support for, so we don't get garbage when you do -nr on vesa for example.
This commit is contained in:
parent
d62ea486b4
commit
b6d8183306
@ -19,7 +19,7 @@
|
|||||||
Summary: X.Org X11 X server
|
Summary: X.Org X11 X server
|
||||||
Name: xorg-x11-server
|
Name: xorg-x11-server
|
||||||
Version: 1.5.2
|
Version: 1.5.2
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
@ -528,6 +528,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 27 2008 Adam Jackson <ajax@redhat.com> 1.5.2-10
|
||||||
|
- xserver-1.5.0-bg-none-root.patch: Make it something the driver has to
|
||||||
|
explicitly claim support for, so we don't get garbage when you do -nr
|
||||||
|
on vesa for example.
|
||||||
|
|
||||||
* Mon Oct 27 2008 Peter Hutterer <peter.hutterer@redhat.com> 1.5.2-9
|
* Mon Oct 27 2008 Peter Hutterer <peter.hutterer@redhat.com> 1.5.2-9
|
||||||
- xserver-1.5.2-more-sanity-checks.patch: more sanity checks to stop vmmouse
|
- xserver-1.5.2-more-sanity-checks.patch: more sanity checks to stop vmmouse
|
||||||
from segfaulting the server. #434807
|
from segfaulting the server. #434807
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
From 8a00e31151649ea43f2160f3ea8e72a2ceccf149 Mon Sep 17 00:00:00 2001
|
From a3e15680da24cb8259f6a83dee0c930dab024290 Mon Sep 17 00:00:00 2001
|
||||||
From: Kristian <krh@redhat.com>
|
From: Kristian <krh@redhat.com>
|
||||||
Date: Fri, 15 Aug 2008 15:15:14 +1000
|
Date: Fri, 15 Aug 2008 15:15:14 +1000
|
||||||
Subject: [PATCH] Add nr for background=none root
|
Subject: [PATCH] Add nr for background=none root
|
||||||
|
|
||||||
---
|
---
|
||||||
dix/globals.c | 1 +
|
dix/globals.c | 1 +
|
||||||
dix/window.c | 15 ++++++++++-----
|
dix/window.c | 22 ++++++++++++----------
|
||||||
include/opaque.h | 1 +
|
hw/xfree86/common/xf86Init.c | 11 +++++++++++
|
||||||
os/utils.c | 3 +++
|
hw/xfree86/common/xf86str.h | 5 ++++-
|
||||||
4 files changed, 15 insertions(+), 5 deletions(-)
|
include/opaque.h | 1 +
|
||||||
|
os/utils.c | 3 +++
|
||||||
|
6 files changed, 32 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
diff --git a/dix/globals.c b/dix/globals.c
|
diff --git a/dix/globals.c b/dix/globals.c
|
||||||
index 7f95eab..db34786 100644
|
index 7f95eab..db34786 100644
|
||||||
@ -23,20 +25,21 @@ index 7f95eab..db34786 100644
|
|||||||
ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */
|
ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */
|
||||||
#endif
|
#endif
|
||||||
diff --git a/dix/window.c b/dix/window.c
|
diff --git a/dix/window.c b/dix/window.c
|
||||||
index 834c26b..0a1d163 100644
|
index 834c26b..6663a1e 100644
|
||||||
--- a/dix/window.c
|
--- a/dix/window.c
|
||||||
+++ b/dix/window.c
|
+++ b/dix/window.c
|
||||||
@@ -472,17 +472,22 @@ InitRootWindow(WindowPtr pWin)
|
@@ -471,23 +471,25 @@ InitRootWindow(WindowPtr pWin)
|
||||||
|
pWin->cursorIsNone = FALSE;
|
||||||
pWin->optional->cursor = rootCursor;
|
pWin->optional->cursor = rootCursor;
|
||||||
rootCursor->refcnt++;
|
rootCursor->refcnt++;
|
||||||
|
+ pWin->backingStore = defaultBackingStore;
|
||||||
|
+ pWin->forcedBS = (defaultBackingStore != NotUseful);
|
||||||
|
|
||||||
- if (!blackRoot && !whiteRoot) {
|
- if (!blackRoot && !whiteRoot) {
|
||||||
- MakeRootTile(pWin);
|
- MakeRootTile(pWin);
|
||||||
- backFlag |= CWBackPixmap;
|
- backFlag |= CWBackPixmap;
|
||||||
+ if (bgNoneRoot) {
|
+ if (bgNoneRoot) {
|
||||||
+ pWin->backgroundState = XaceBackgroundNoneState(pWin);
|
+ /* nothing, handled in xf86CreateRootWindow */
|
||||||
+ pWin->background.pixel = pScreen->whitePixel;
|
|
||||||
+ backFlag |= CWBackPixmap;
|
|
||||||
}
|
}
|
||||||
- else {
|
- else {
|
||||||
+ else if (blackRoot || whiteRoot) {
|
+ else if (blackRoot || whiteRoot) {
|
||||||
@ -46,14 +49,80 @@ index 834c26b..0a1d163 100644
|
|||||||
pWin->background.pixel = pScreen->whitePixel;
|
pWin->background.pixel = pScreen->whitePixel;
|
||||||
backFlag |= CWBackPixel;
|
backFlag |= CWBackPixel;
|
||||||
- }
|
- }
|
||||||
|
-
|
||||||
|
- pWin->backingStore = defaultBackingStore;
|
||||||
|
- pWin->forcedBS = (defaultBackingStore != NotUseful);
|
||||||
|
- /* We SHOULD check for an error value here XXX */
|
||||||
|
- (*pScreen->ChangeWindowAttributes)(pWin, backFlag);
|
||||||
|
+ pScreen->ChangeWindowAttributes(pWin, backFlag);
|
||||||
+ }
|
+ }
|
||||||
+ else {
|
+ else {
|
||||||
+ MakeRootTile(pWin);
|
+ MakeRootTile(pWin);
|
||||||
+ backFlag |= CWBackPixmap;
|
+ backFlag |= CWBackPixmap;
|
||||||
|
+ pScreen->ChangeWindowAttributes(pWin, backFlag);
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
pWin->backingStore = defaultBackingStore;
|
MapWindow(pWin, serverClient);
|
||||||
pWin->forcedBS = (defaultBackingStore != NotUseful);
|
}
|
||||||
|
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
|
||||||
|
index eb4ebfa..2c18da4 100644
|
||||||
|
--- a/hw/xfree86/common/xf86Init.c
|
||||||
|
+++ b/hw/xfree86/common/xf86Init.c
|
||||||
|
@@ -83,6 +83,7 @@
|
||||||
|
#ifdef RENDER
|
||||||
|
#include "picturestr.h"
|
||||||
|
#endif
|
||||||
|
+#include "xace.h"
|
||||||
|
|
||||||
|
#include "globals.h"
|
||||||
|
|
||||||
|
@@ -137,6 +138,7 @@ xf86CreateRootWindow(WindowPtr pWin)
|
||||||
|
int ret = TRUE;
|
||||||
|
int err = Success;
|
||||||
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
|
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||||
|
RootWinPropPtr pProp;
|
||||||
|
CreateWindowProcPtr CreateWindow = (CreateWindowProcPtr)
|
||||||
|
dixLookupPrivate(&pScreen->devPrivates, xf86CreateRootWindowKey);
|
||||||
|
@@ -190,6 +192,15 @@ xf86CreateRootWindow(WindowPtr pWin)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (bgNoneRoot && pScrn->canDoBGNoneRoot) {
|
||||||
|
+ pWin->backgroundState = XaceBackgroundNoneState(pWin);
|
||||||
|
+ pWin->background.pixel = pScreen->whitePixel;
|
||||||
|
+ pScreen->ChangeWindowAttributes(pWin, CWBackPixmap | CWBorderPixel | CWCursor | CWBackingStore);
|
||||||
|
+ } else {
|
||||||
|
+ pWin->background.pixel = pScreen->blackPixel;
|
||||||
|
+ pScreen->ChangeWindowAttributes(pWin, CWBackPixel | CWBorderPixel | CWCursor | CWBackingStore);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
#ifdef DEBUG
|
||||||
|
ErrorF("xf86CreateRootWindow() returns %d\n", ret);
|
||||||
|
#endif
|
||||||
|
diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h
|
||||||
|
index fc94284..56c5507 100644
|
||||||
|
--- a/hw/xfree86/common/xf86str.h
|
||||||
|
+++ b/hw/xfree86/common/xf86str.h
|
||||||
|
@@ -538,7 +538,7 @@ typedef struct _confdrirec {
|
||||||
|
} confDRIRec, *confDRIPtr;
|
||||||
|
|
||||||
|
/* These values should be adjusted when new fields are added to ScrnInfoRec */
|
||||||
|
-#define NUM_RESERVED_INTS 16
|
||||||
|
+#define NUM_RESERVED_INTS 15
|
||||||
|
#define NUM_RESERVED_POINTERS 15
|
||||||
|
#define NUM_RESERVED_FUNCS 11
|
||||||
|
|
||||||
|
@@ -977,6 +977,9 @@ typedef struct _ScrnInfoRec {
|
||||||
|
ClockRangesPtr clockRanges;
|
||||||
|
int adjustFlags;
|
||||||
|
|
||||||
|
+ /* -nr support */
|
||||||
|
+ int canDoBGNoneRoot;
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* These can be used when the minor ABI version is incremented.
|
||||||
|
* The NUM_* parameters must be reduced appropriately to keep the
|
||||||
diff --git a/include/opaque.h b/include/opaque.h
|
diff --git a/include/opaque.h b/include/opaque.h
|
||||||
index 3d19d27..cf5d135 100644
|
index 3d19d27..cf5d135 100644
|
||||||
--- a/include/opaque.h
|
--- a/include/opaque.h
|
||||||
@ -67,7 +136,7 @@ index 3d19d27..cf5d135 100644
|
|||||||
extern Bool CoreDump;
|
extern Bool CoreDump;
|
||||||
|
|
||||||
diff --git a/os/utils.c b/os/utils.c
|
diff --git a/os/utils.c b/os/utils.c
|
||||||
index d785d46..08337d8 100644
|
index f58c763..72a03c8 100644
|
||||||
--- a/os/utils.c
|
--- a/os/utils.c
|
||||||
+++ b/os/utils.c
|
+++ b/os/utils.c
|
||||||
@@ -615,6 +615,7 @@ void UseMsg(void)
|
@@ -615,6 +615,7 @@ void UseMsg(void)
|
||||||
@ -88,5 +157,5 @@ index d785d46..08337d8 100644
|
|||||||
if(++i < argc) {
|
if(++i < argc) {
|
||||||
long reqSizeArg = atol(argv[i]);
|
long reqSizeArg = atol(argv[i]);
|
||||||
--
|
--
|
||||||
1.5.5.1
|
1.6.0.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user