Steal Xinerama code from SiS driver. Add missing files.
Provide a Xinerama implementation when DIX version isn't enabled. This version exposes each crtc as a separate 'screen' and reports the size of that patch. The extension also sends ConfigureNotify events to the root window whenever crtcs change so that applications will re-fetch xinerama information. This actually works for metacity.
This commit is contained in:
@@ -111,6 +111,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
|
||||
outputs = NULL;
|
||||
}
|
||||
crtc->outputs = outputs;
|
||||
crtc->numOutputs = numOutputs;
|
||||
}
|
||||
for (i = 0; i < numOutputs; i++)
|
||||
{
|
||||
@@ -158,7 +159,11 @@ RRCrtcNotify (RRCrtcPtr crtc,
|
||||
crtc->changed = TRUE;
|
||||
}
|
||||
if (crtc->changed)
|
||||
{
|
||||
if (!pScrPriv->changed)
|
||||
RRSendConfigNotify (pScreen);
|
||||
pScrPriv->changed = TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user