diff options
Diffstat (limited to 'hw/dmx/input/dmxdetach.c')
-rw-r--r-- | hw/dmx/input/dmxdetach.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/dmx/input/dmxdetach.c b/hw/dmx/input/dmxdetach.c index cc2250683..469f9c8d0 100644 --- a/hw/dmx/input/dmxdetach.c +++ b/hw/dmx/input/dmxdetach.c @@ -42,12 +42,14 @@ #include "dmxextension.h" /* For dmxInputCount */ /** Search for input associated with \a dmxScreen, and detach. */ -void dmxInputDetach(DMXScreenInfo *dmxScreen, Bool reserveId) +void +dmxInputDetach(DMXScreenInfo * dmxScreen, Bool reserveId) { int i; for (i = 0; i < dmxNumInputs; i++) { DMXInputInfo *dmxInput = &dmxInputs[i]; + if (dmxInput->scrnIdx == dmxScreen->index) { dmxLogInput(dmxInput, "Detaching (%sreserved)\n", reserveId ? "" : "not "); |