mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into input-hotplug
This commit is contained in:
commit
3a36b0a24a
4 changed files with 50 additions and 15 deletions
|
|
@ -571,24 +571,40 @@ xf86InitOrigins(void)
|
|||
/* force edge lists */
|
||||
if(screen->left) {
|
||||
ref = screen->left->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
pLayout->left = AddEdge(pLayout->left,
|
||||
0, xf86Screens[i]->pScreen->height,
|
||||
xf86Screens[ref]->pScreen->width, 0, ref);
|
||||
}
|
||||
if(screen->right) {
|
||||
ref = screen->right->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
pScreen = xf86Screens[i]->pScreen;
|
||||
pLayout->right = AddEdge(pLayout->right,
|
||||
0, pScreen->height, -pScreen->width, 0, ref);
|
||||
}
|
||||
if(screen->top) {
|
||||
ref = screen->top->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
pLayout->up = AddEdge(pLayout->up,
|
||||
0, xf86Screens[i]->pScreen->width,
|
||||
0, xf86Screens[ref]->pScreen->height, ref);
|
||||
}
|
||||
if(screen->bottom) {
|
||||
ref = screen->bottom->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
pScreen = xf86Screens[i]->pScreen;
|
||||
pLayout->down = AddEdge(pLayout->down,
|
||||
0, pScreen->width, 0, -pScreen->height, ref);
|
||||
|
|
@ -604,6 +620,10 @@ xf86InitOrigins(void)
|
|||
break;
|
||||
case PosRelative:
|
||||
ref = screen->refscreen->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
if(screensLeft & (1 << ref)) break;
|
||||
dixScreenOrigins[i].x = dixScreenOrigins[ref].x + screen->x;
|
||||
dixScreenOrigins[i].y = dixScreenOrigins[ref].y + screen->y;
|
||||
|
|
@ -611,6 +631,10 @@ xf86InitOrigins(void)
|
|||
break;
|
||||
case PosRightOf:
|
||||
ref = screen->refscreen->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
if(screensLeft & (1 << ref)) break;
|
||||
pScreen = xf86Screens[ref]->pScreen;
|
||||
dixScreenOrigins[i].x =
|
||||
|
|
@ -620,6 +644,10 @@ xf86InitOrigins(void)
|
|||
break;
|
||||
case PosLeftOf:
|
||||
ref = screen->refscreen->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
if(screensLeft & (1 << ref)) break;
|
||||
pScreen = xf86Screens[i]->pScreen;
|
||||
dixScreenOrigins[i].x =
|
||||
|
|
@ -629,6 +657,10 @@ xf86InitOrigins(void)
|
|||
break;
|
||||
case PosBelow:
|
||||
ref = screen->refscreen->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
if(screensLeft & (1 << ref)) break;
|
||||
pScreen = xf86Screens[ref]->pScreen;
|
||||
dixScreenOrigins[i].x = dixScreenOrigins[ref].x;
|
||||
|
|
@ -638,6 +670,10 @@ xf86InitOrigins(void)
|
|||
break;
|
||||
case PosAbove:
|
||||
ref = screen->refscreen->screennum;
|
||||
if (! xf86Screens[ref] || ! xf86Screens[ref]->pScreen) {
|
||||
ErrorF("Referenced uninitialized screen in Layout!\n");
|
||||
break;
|
||||
}
|
||||
if(screensLeft & (1 << ref)) break;
|
||||
pScreen = xf86Screens[i]->pScreen;
|
||||
dixScreenOrigins[i].x = dixScreenOrigins[ref].x;
|
||||
|
|
|
|||
Loading…
Reference in a new issue