Addition of console input after removal of core backend input that is not

on screen 0 can cause a segfault. Fix by preventing reinitialization of
    detached inputs. When Xinerama is active and screen 0 is detached,
    pixmaps for XGetImage must be obtained from another screen.
This commit is contained in:
Rik Faith 2004-07-18 22:19:33 +00:00
commit c042647278
2 changed files with 45 additions and 4 deletions

View file

@ -227,14 +227,14 @@ static void dmxAdjustCursorBoundaries(void)
dmxConnectionBlockCallback();
for (i = 0; i < dmxNumInputs; i++) {
DMXInputInfo *dmxInput = &dmxInputs[i];
dmxInputReInit(dmxInput);
if (!dmxInput->detached) dmxInputReInit(dmxInput);
}
dmxCheckCursor();
for (i = 0; i < dmxNumInputs; i++) {
DMXInputInfo *dmxInput = &dmxInputs[i];
dmxInputLateReInit(dmxInput);
if (!dmxInput->detached) dmxInputLateReInit(dmxInput);
}
}