Blame xorg-x11-server-0.99.3-init-origins-fix.patch
|
mharris |
3a3aa5e |
Patch by krh@redhat.com:
|
|
mharris |
3a3aa5e |
|
|
mharris |
3a3aa5e |
In a multihead setup, if only the first screen can be
|
|
mharris |
3a3aa5e |
initialized, but the second screen is mentioned first in the
|
|
mharris |
3a3aa5e |
ServerLayout section, the xf86InitOrigins() function will crash
|
|
mharris |
3a3aa5e |
because the screen referred to in the e.g. "RightOf" part is
|
|
mharris |
3a3aa5e |
non-existent.
|
|
mharris |
3a3aa5e |
|
|
mharris |
3a3aa5e |
--- hw/xfree86/common/xf86Cursor.c.init-origins-fix 2004-10-18 22:22:42.675899006 -0400
|
|
mharris |
3a3aa5e |
+++ hw/xfree86/common/xf86Cursor.c 2004-10-18 22:21:42.540867549 -0400
|
|
mharris |
3a3aa5e |
@@ -566,6 +566,14 @@
|
|
mharris |
3a3aa5e |
|
|
mharris |
3a3aa5e |
screen = &xf86ConfigLayout.screens[i];
|
|
mharris |
3a3aa5e |
|
|
mharris |
3a3aa5e |
+ if (screen->refscreen != NULL &&
|
|
mharris |
3a3aa5e |
+ screen->refscreen->screennum >= xf86NumScreens) {
|
|
mharris |
3a3aa5e |
+ screensLeft &= ~(1 << i);
|
|
mharris |
3a3aa5e |
+ xf86Msg(X_WARNING, "Not including screen \"%s\" in origins calculation.\n",
|
|
mharris |
3a3aa5e |
+ screen->screen->id);
|
|
mharris |
3a3aa5e |
+ continue;
|
|
mharris |
3a3aa5e |
+ }
|
|
mharris |
3a3aa5e |
+
|
|
mharris |
3a3aa5e |
switch(screen->where) {
|
|
mharris |
3a3aa5e |
case PosObsolete:
|
|
mharris |
3a3aa5e |
OldStyleConfig = TRUE;
|