WISDOM, Circuit Judge:
This appeal presents two questions. The first involves the plaintiffs’ eligibility to recover attorney’s fees under 42 U.S.C. § 1988 for legal work performed on an aspect of their case that became moot before reaching judgment and was arguably barred by res judicata. The second question concerns the scope of qualified official immunity doctrine. After reviewing the tortuous path that brought these parties before us, we conclude that in denying attorney’s fees without a hearing, and in granting immunity to the individual defendants, the district court erred. We therefore remand the case for further proceedings consistent with this opinion.
I. BACKGROUND
A. The Savidge Complaint
The plaintiffs in this case are Jonathan Savidge and his parents, Wilbur and Felicia Savidge. At this time, Jonathan is a profoundly retarded fifteen-year-old boy.1 From September 1980 until May 1986, Jonathan lived at the Fort Worth State School for the retarded (FWSS) in Forth Worth, Texas. In January 1983, the plaintiffs sued Texas, the Texas Department of Mental Health and Mental Retardation (DMHMR), and four individual employees of the FWSS. The plaintiffs sought compensation for damages allegedly arising from past and continuing violations of Jonathan’s constitutional rights.
According to the Savidges’ complaint, living conditions at the FWSS were “oppressive, inappropriate, unhealthy, filthy, abusive and restrictive”. Among other allegations, the plaintiffs allege that the building Jonathan lived in was “permeated with stench”; that Jonathan and other residents were left “to play in each other’s feces”; that Jonathan’s medications were poorly monitored; that Jonathan was repeatedly bitten by other residents; and that the [901]*901wheelchair he used was so small (it was the original one he had when he entered FWSS) that it worsened the spinal condition (scoliosis) that afflicts him. In short, thé complaint in this case describes an environment so unhealthy that it physically threatened Jonathan Savidge.2
The plaintiffs contend that conditions at the FWSS violated Jonathan’s constitutional right to reasonably safe institutional care from the time he arrived until the time he left. One episode in the winter of 1980-81 illustrates the seriousness of their claim. The plaintiffs maintain that the defendants assigned Jonathan, a child known to have a special susceptibility to infection, to a ward in the FWSS with a “dangerously high level of infectious staphlococcus [sic] bacteria”. A few months after his arrival, Jonathan suffered a fever and “infected boils”. By early 1981, the boils had enlarged and Jonathan’s fever climbed as high as 105.8° Farenheit. Jonathan developed a hand-sized swelling on the right side of his ribcage. As it is described in the complaint, the treatment that the individually-named defendants provided for Jonathan was shockingly inadequate. As a direct result of the defendants’ conduct, plaintiffs allege, Jonathan Savidge required surgery that left him partially paralyzed.
The complaint explains the relationship between each individual defendant and Jonathan Savidge. It further alleges that:
Defendants knew or should have known that their actions and inactions which resulted in harms to [the plaintiffs] were illegal and a violation of plaintiffs’ rights under federal and state law.3
The plaintiffs state that violations of their constitutional rights are actionable under 42 U.S.C. § 1983. In their prayer for relief they request damages and a declaratory judgment, but no injunction.
B. The Emergency Motion
In September 1983, eight months after they had filed their complaint, the plaintiffs petitioned the district court for an “emergency” injunctive order requiring the defendants to place Jonathan in a community-based residence. The parties engaged in several months of discovery on the issue of Jonathan’s right to injunctive relief. On January 5, 1984, the district court severed the motion for an injunction from the rest of the case, and scheduled the motion for trial.
The injunction hearing lasted for four days. Contrary to a suggestion the defendants have often made, the district judge did not hear evidence relating directly to the plaintiffs’ claim for damages. The expert testimony focused on harms that might befall Jonathan in the future, not those he had already suffered.4 There was a great deal of conflicting evidence about the potential cost of transferring Jonathan to a community-based residence; the conduct of the individual defendants, by contrast, was never mentioned. On March 1, 1984, the district court took the “emergency” motion for injunctive relief under advisement.
C. The Lelsz Litigation
Some of the difficulty and much of the delay in this case are a result of Jonathan Savidge’s participation in a class action against the FWSS and two similar Texas institutions. That class action, Lelsz v. Kavanaugk, began in 1974 in the Eastern District of Texas. The Lelsz plaintiffs alleged that the institutional care provided by the defendants violated both state and federal law. Roughly speaking, the Lelsz class sought more therapy, smaller residences, and cleaner surroundings. The [902]*902Lelsz litigation was seemingly settled by a consent decree in mid-1983, several months after the filing of the initial complaint in Savidge, and several months before the “emergency” motion was filed.
The Lelsz decree established that the defendants would provide “habilitation”, or individualized therapy, to each member of the plaintiff class. It also stated that “[defendants will provide each member of the plaintiff class with the least restrictive living conditions possible consistent with the person’s particular circumstances ...” In return for these and other promises, the plaintiffs — including Jonathan Savidge— agreed to a statement that “[t]hese provisions include a final resolution of the defendants’ obligations towards the members of the plaintiff class and of the issues raised by this litigation”.
In February 1985, in an effort to correct what they viewed as unnecessary foot-dragging by the state, the Lelsz plaintiffs filed a “Motion for Community Placement”. After a hearing, the district court granted this motion in part, and ordered that 279 members of the Lelsz class be transferred to community centers on or before September 1, 1986.
On appeal, a panel of this Court ruled that the district court was without jurisdiction to enforce key sections of the consent decree.5 The Court, relying on Penn-hurst,6 reasoned that insofar as the consent decree was based upon state law it was entered in violation of the Eleventh Amendment. And to the extent the consent decree rested upon federal constitutional rights to “habilitation” and placement in a “least restrictive environment”, the Court denied that the Lelsz class enjoyed such rights. The Court then concluded that:
Free access — add to your briefcase to read the full text and ask questions with AI
WISDOM, Circuit Judge:
This appeal presents two questions. The first involves the plaintiffs’ eligibility to recover attorney’s fees under 42 U.S.C. § 1988 for legal work performed on an aspect of their case that became moot before reaching judgment and was arguably barred by res judicata. The second question concerns the scope of qualified official immunity doctrine. After reviewing the tortuous path that brought these parties before us, we conclude that in denying attorney’s fees without a hearing, and in granting immunity to the individual defendants, the district court erred. We therefore remand the case for further proceedings consistent with this opinion.
I. BACKGROUND
A. The Savidge Complaint
The plaintiffs in this case are Jonathan Savidge and his parents, Wilbur and Felicia Savidge. At this time, Jonathan is a profoundly retarded fifteen-year-old boy.1 From September 1980 until May 1986, Jonathan lived at the Fort Worth State School for the retarded (FWSS) in Forth Worth, Texas. In January 1983, the plaintiffs sued Texas, the Texas Department of Mental Health and Mental Retardation (DMHMR), and four individual employees of the FWSS. The plaintiffs sought compensation for damages allegedly arising from past and continuing violations of Jonathan’s constitutional rights.
According to the Savidges’ complaint, living conditions at the FWSS were “oppressive, inappropriate, unhealthy, filthy, abusive and restrictive”. Among other allegations, the plaintiffs allege that the building Jonathan lived in was “permeated with stench”; that Jonathan and other residents were left “to play in each other’s feces”; that Jonathan’s medications were poorly monitored; that Jonathan was repeatedly bitten by other residents; and that the [901]*901wheelchair he used was so small (it was the original one he had when he entered FWSS) that it worsened the spinal condition (scoliosis) that afflicts him. In short, thé complaint in this case describes an environment so unhealthy that it physically threatened Jonathan Savidge.2
The plaintiffs contend that conditions at the FWSS violated Jonathan’s constitutional right to reasonably safe institutional care from the time he arrived until the time he left. One episode in the winter of 1980-81 illustrates the seriousness of their claim. The plaintiffs maintain that the defendants assigned Jonathan, a child known to have a special susceptibility to infection, to a ward in the FWSS with a “dangerously high level of infectious staphlococcus [sic] bacteria”. A few months after his arrival, Jonathan suffered a fever and “infected boils”. By early 1981, the boils had enlarged and Jonathan’s fever climbed as high as 105.8° Farenheit. Jonathan developed a hand-sized swelling on the right side of his ribcage. As it is described in the complaint, the treatment that the individually-named defendants provided for Jonathan was shockingly inadequate. As a direct result of the defendants’ conduct, plaintiffs allege, Jonathan Savidge required surgery that left him partially paralyzed.
The complaint explains the relationship between each individual defendant and Jonathan Savidge. It further alleges that:
Defendants knew or should have known that their actions and inactions which resulted in harms to [the plaintiffs] were illegal and a violation of plaintiffs’ rights under federal and state law.3
The plaintiffs state that violations of their constitutional rights are actionable under 42 U.S.C. § 1983. In their prayer for relief they request damages and a declaratory judgment, but no injunction.
B. The Emergency Motion
In September 1983, eight months after they had filed their complaint, the plaintiffs petitioned the district court for an “emergency” injunctive order requiring the defendants to place Jonathan in a community-based residence. The parties engaged in several months of discovery on the issue of Jonathan’s right to injunctive relief. On January 5, 1984, the district court severed the motion for an injunction from the rest of the case, and scheduled the motion for trial.
The injunction hearing lasted for four days. Contrary to a suggestion the defendants have often made, the district judge did not hear evidence relating directly to the plaintiffs’ claim for damages. The expert testimony focused on harms that might befall Jonathan in the future, not those he had already suffered.4 There was a great deal of conflicting evidence about the potential cost of transferring Jonathan to a community-based residence; the conduct of the individual defendants, by contrast, was never mentioned. On March 1, 1984, the district court took the “emergency” motion for injunctive relief under advisement.
C. The Lelsz Litigation
Some of the difficulty and much of the delay in this case are a result of Jonathan Savidge’s participation in a class action against the FWSS and two similar Texas institutions. That class action, Lelsz v. Kavanaugk, began in 1974 in the Eastern District of Texas. The Lelsz plaintiffs alleged that the institutional care provided by the defendants violated both state and federal law. Roughly speaking, the Lelsz class sought more therapy, smaller residences, and cleaner surroundings. The [902]*902Lelsz litigation was seemingly settled by a consent decree in mid-1983, several months after the filing of the initial complaint in Savidge, and several months before the “emergency” motion was filed.
The Lelsz decree established that the defendants would provide “habilitation”, or individualized therapy, to each member of the plaintiff class. It also stated that “[defendants will provide each member of the plaintiff class with the least restrictive living conditions possible consistent with the person’s particular circumstances ...” In return for these and other promises, the plaintiffs — including Jonathan Savidge— agreed to a statement that “[t]hese provisions include a final resolution of the defendants’ obligations towards the members of the plaintiff class and of the issues raised by this litigation”.
In February 1985, in an effort to correct what they viewed as unnecessary foot-dragging by the state, the Lelsz plaintiffs filed a “Motion for Community Placement”. After a hearing, the district court granted this motion in part, and ordered that 279 members of the Lelsz class be transferred to community centers on or before September 1, 1986.
On appeal, a panel of this Court ruled that the district court was without jurisdiction to enforce key sections of the consent decree.5 The Court, relying on Penn-hurst,6 reasoned that insofar as the consent decree was based upon state law it was entered in violation of the Eleventh Amendment. And to the extent the consent decree rested upon federal constitutional rights to “habilitation” and placement in a “least restrictive environment”, the Court denied that the Lelsz class enjoyed such rights. The Court then concluded that:
[tjhere being no constitutional scope to [the paragraphs in the settlement agreement invoked by the plaintiffs], the district court’s decree purporting to enforce them may not rest on that authority and is unauthorized.7
In other words, not only did the Court vacate the district court’s enforcement order, it also cast doubt upon the underlying consent decree.8 This doubt, as we shall see, complicates the res judicata effect of Lelsz upon Savidge.
D. The post-trial history of Savidge
When we left Savidge, the district court had bifurcated the case and had tried the plaintiffs’ motion for an injunction. The next two years saw the following developments: 1) the case was transferred from the Northern to the Eastern District of Texas, then the exclusive forum for the Lelsz litigation;9 2) the case was transferred back to the Northern District; 3) the case was dismissed without prejudice to the plaintiffs’ right to refile in the Eastern District; and, 4) the dismissal was reversed on appeal.10 At this point, in early May of 1986, with the Northern District finally established as the proper forum for the case, and with a decision on the plaintiffs’ motion apparently imminent, the defendants transferred Jonathan to a community-based residence and agreed to furnish him a proper wheelchair. This effectively gave the plaintiffs all the injunctive relief they had ever sought.11
[903]*903Nonetheless, a few weeks later the plaintiffs filed a “Motion for Judgment on Permanent Injunction and for Discovery and Trial Schedule on Damage Portion of Case”. The plaintiffs sought a “Judgment ... incorporating the new placement and allowing for appropriate professional program modifications”. In a proposed order attached as an appendix to the motion, the plaintiffs suggested that they be awarded attorney’s fees under 42 U.S.C. § 1988. The defendants opposed this motion and asked the court to rule on their motion— filed on September 23, 1983 — for summary judgment on the damages portion of the case.
On October 30, without making reference to the possible mootness problem, the district court finally denied the plaintiffs’ “emergency” motion for injunctive relief. The court ruled that “[a]s a member of the class which was afforded injunctive relief in the Lelsz settlement, plaintiff is barred from receiving extraordinary relief from this Court by the doctrine of res judica-ta ”.12 The court then denied the plaintiffs’ indirect request for attorney’s fees with the observation that “this lawsuit did not serve as an impetus for the eventual placement of Jonathan Savidge in a small, community setting ... ”.
The district court also denied the plaintiffs’ claim for damages. Relying upon the Supreme Court’s decision in Edelman v. Jordan,13 the court held that the Eleventh Amendment necessarily precluded “all monetary damages sought”. Four of the defendants had been sued as private individuals, however, and on February 5, 1987, the court clarified its order, stating that it
did intend in its October 30, 1986 Order to deny all of Plaintiffs’ damage claims against the Defendants in their individual capacities because Plaintiffs failed to state a federal claim in light of Defendants’ qualified immunity defense.14
In form this order merely denied a motion filed by the plaintiffs, but in effect it left the parties with nothing left to litigate.15 The plaintiffs filed a timely appeal.
E. The present appeal
The plaintiffs are not now seeking any injunctive relief for Jonathan Savidge. They concede that the Eleventh Amendment bars their claim for damages against the State of Texas, the DMHMR, and the individual defendants sued in their capacity as state officials. On the other hand, the defendants concede that the Eleventh Amendment does not protect the four individual defendants from claims against them in their capacity as private persons acting under color of state law.16 The defendants also agree that the damages portion of the plaintiffs’ case is not precluded by the Lelsz litigation.
In their appeal, the plaintiffs object first to the denial of attorney’s fees. The district court abused its discretion, they ar[904]*904gue, by ruling against them without allowing discovery, briefs, or a hearing on the question whether their lawsuit in fact led to Jonathan’s transfer. Second, the plaintiffs challenge the district court’s determination that the individual defendants in this case are entitled to qualified official immunity.
II. ATTORNEY’S FEES
42 U.S.C. § 1983 establishes a cause of action for the Savidges’ constitutional law claims. Congress has provided that in section 1983 cases, “the court in its discretion, may allow the prevailing party ... a reasonable attorney’s fee as part of the costs”.17 In a gloss on this language based on the legislative history, the Supreme Court has held that when a section 1983 plaintiff prevails, “fees should be awarded ‘unless special circumstances would render such an award unjust’ ”.18 The district court in this case made no finding of special circumstances; the denial of fees was based upon an implicit determination that the plaintiffs had not “prevailed”.
It is now firmly established that a civil rights plaintiff may “prevail” — and thus be presumptively entitled to fees — in a case that is settled, or otherwise becomes moot, before reaching a judgment on the merits.19 We view this as such a case: as soon as Jonathan received his transfer, and the promise of a wheelchair, the plaintiffs’ motion for injunctive relief became moot.20 Because mootness removes a federal court’s authority to adjudicate, the district court erred in deciding the plaintiffs’ motion.21 The parties’ consent is no substitute for subject matter jurisdiction over an issue.
In Williams v. Leatherbury we held that in the absence of a judgment a party may prevail “if its ends are accomplished as a result of the litigation”.22 In cases where the defendant unilaterally moots the suit, however, we will deny attorney’s fees if the defendant can show that his conduct was “a wholly gratuitous response to an action that was itself frivolous or groundless”.23 In this case, to qualify as prevailing parties, the plaintiffs must show: 1) that they have received a substantial part of the injunctive relief they sought from the defendants, 2) as a [905]*905result of this litigation. If this burden is met it remains for the defendants to establish that the Savidges’ claims were frivolous, or obviously barred by res judicata.
Of the plaintiffs’ two requirements, the first is met beyond any dispute.24 The second, the requirement of causation, is vigorously contested by the parties. The district court found that “this lawsuit did not serve as an impetus for the eventual placement of Jonathan Savidge in a small, community setting .. .”.25 We affirm findings of fact unless clearly erroneous, and the existence of causation in a dispute over attorney’s fees is no exception.26 In this case, however, we hold that the procedure leading to the district court’s determination was inadequate.
The appendix to the plaintiffs’ motion arguably placed the issue of attorney’s fees before the district court. Nonetheless, we conclude that the court erred in deciding the “intensely factual” issue of causation without an evidentiary hearing.27 It is possible that the defendants transferred Jonathan to comply with the consent decree in Lelsz. It is also possible, as the defendants themselves contend, that the decision to transfer Jonathan was “based upon the judgment of the trained professionals evaluating and monitoring his situation” independent of any pending litigation. Either of these explanations for the transfer, if established on the basis of a properly developed record, would preclude an award of attorney’s fees in this case.
On the other hand, it is also possible that the present suit was a significant factor behind Jonathan’s transfer. The chronology of events, though by no means conclusive, is consistent with this third possibility. Moreover, the transcript of the injunction hearing contains references suggesting that the defendants paid “special attention” to Jonathan “because of his involvement in this litigation”. The plaintiffs should be given an opportunity to develop and present evidence on this issue.
The decision whether to grant attorney’s fees to a civil rights plaintiff carries great importance to society as a whole. In its report on the version of 42 U.S.C. § 1988 that is at issue in this case, the Senate Judiciary Committee observed that a fee shifting rule is necessary “[i]f our civil rights laws are not to become mere hollow pronouncements which the average citizen cannot enforce”.28 The legal services provided to the plaintiff in a vigorously prosecuted civil rights case may cost many thousands of dollars. Summary disposition of the plaintiff’s petition for fees in such a case is generally not acceptable.29
The Savidges spent more than two years pursuing a court order that would transfer [906]*906Jonathan from the FWSS. Their attorneys represented them through limited discovery, a trial with expert witnesses, several post-trial motions, and an appeal. Finally, on the eve of a decision from the district court, the defendants transferred Jonathan to an acceptable community-based residence. It seems to us appropriate for the district court to conduct a hearing on the issue of causation, especially in view of the history of the Lelsz litigation.30
Turning to the final requirement for prevailing party status, we hold that the plaintiffs’ motion for injunctive relief was not frivolous. Before the most recent developments in the Lelsz litigation, the Savidges’ motion was arguably — but not necessarily — barred by the res judicata effect of the consent decree.31 We now know, however, that parts of that decree were invalid. Specifically, this court nullified the decree to the extent that it was based upon a generalized due process right “to receive treatment in the least restrictive alternative setting”.32 A decree that has been vacated or nullified by an appellate court cannot be given res judicata effect.33
In this case the Savidges sought to enforce Jonathan’s individual due process right to treatment in a less restrictive setting than the FWSS. The expert witnesses and the Texas DMHMR employees who testified at the injunction trial agreed that a community-based home was the professionally-indicated residence for Jonathan. In Clark v. Cohen the Court of Appeals for the Third Circuit upheld a district court finding that:
Clark’s confinement at [a Pennsylvania institution for the retarded] since at least 1976 in the face of unanimous professional opinion that she should be placed in a far less restrictive environment violated her substantive liberty right to appropriate treatment.34
Similarly, Dr. Gant’s recommendation of a program that would rectify the harms she believed were being done to Jonathan by residence in the FWSS is broadly analogous to the “discrete recommendation” that was carried out in Thomas S. v. Morrow. 35 Significantly, the Lelsz panel distinguished Clark and Thomas S. as cases [907]*907involving individual retardates.36
The Savidges’ motion for injunctive relief would have affected only Jonathan. We need not decide whether the motion was ultimately meritorious;37 we do conclude, however, that it was not “frivolous or groundless”.38
To summarize, the plaintiffs have achieved what they sought when they filed their motion for injunctive relief. We have determined that their claim to this relief was not frivolous, or barred by res judica-ta. Finally, we reverse the district court’s ruling on causation and remand this issue for discovery, briefing, and a finding on whether the pendency of the plaintiffs’ motion was a significant factor in the defendants’ decision last year to transfer Jonathan Savidge to a group home. If the plaintiffs can establish this causal nexus, they are prevailing parties and presumptively entitled to attorney’s fees under 42 U.S.C. § 1988.
III. QUALIFIED IMMUNITY
We now turn to the district court’s decision to dismiss the Savidges’ claim for damages against the four individual defendants. Jaylon Fincannon is a former superintendent of the FWSS. Defendants Buchanan, Read, and Chavez are former FWSS doctors who were at various times responsible for Jonathan’s personal and medical care. We do not doubt that these defendants come within the scope of qualified official immunity doctrine.39 The main question we must decide, then, is whether their conduct, as alleged in the Savidges’ complaint, “violate[d] clearly established statutory or constitutional rights of which a reasonable person would have known”.40
The defendants’ argument in support of the dismissal contains two distinct strands. First, the defendants maintain that the complaint does not properly allege that Jonathan’s constitutional rights were violated.41 Second, the defendants assert that even if their conduct violated Jonathan’s rights, in the years covered by the complaint the governing law was not “clearly established”.
The defendants’ first line of argument is without merit. The complaint alleges that the defendants’ conduct violated Jonathan’s right to a reasonably safe physical environment.42 In Youngberg v. Romeo, the Supreme Court recognized that an institutionalized retarded person has a liberty interest in “personal security” as well as a right to “freedom from bodily restraint”.43 These are interests, the Court added, “that involuntary commitment proceedings do not extinguish”.44 The plain[908]*908tiffs have adequately alleged that each individual defendant knowingly deprived Jonathan of his right to minimally adequate shelter and medical care.45
The defendants’ possible entitlement to official immunity presents a somewhat closer question. Ultimately, however, we reject their grudging interpretation of the development of constitutional safeguards for the retarded. At a national level it may be true that the right to affirmative “habilitation” described by the Third Circuit in Romeo v. Youngberg was, at least until recently, a spectre in “the twilight area of developing law ... ”.46 Yet the Supreme Court in its opinion endorsed the observation, made in 1980 at about the time Savidge first entered the FWSS, that “a constitutional right to minimally adequate care and treatment ... is no longer a novel proposition”.47
In the circuit courts, the concept of a constitutional right to treatment can be traced back as far as Rouse v. Cameron.48 In this circuit, the right of civilly committed retardates to “such individual treatment as will help ... them to be cured or to improve [their] mental condition” is at least as old as Wyatt v. Aderholt. 49 In that case we also affirmed the plaintiffs’ right to a “humane” and presumably safe environment.50 Wyatt survives Lelsz; it was certainly good law in the early 1980’s when most of the damage that the plaintiffs allege in this case took place.51
The defendants contend that Wyatt, unlike Youngberg, depends in its reasoning upon the state’s participation in a formal civil commitment proceeding.52 This observation, though arguably correct, must not be allowed to obscure the fact that as a general matter the duty to provide institutionalized retardates with constitutionally adequate care was firmly established in this circuit by 1980.53 We reject any ap[909]*909proach to immunity doctrine that requires us to imagine the defendants saying to themselves, “We can safely give Jonathan Savidge inadequate treatment; he was not committed to the FWSS through formal judicial proceedings and so the rationale in Wyatt may not apply to him”.54 We simply do not envision reasonable doctors and administrators calibrating their responsibility to each child on the basis of such narrow distinctions.55 If the allegations in the plaintiffs’ complaint are true, and they must be accepted as true, the individual defendants should have known that they were treating Jonathan Savidge in an unconstitutional manner.
IV. CONCLUSION
We conclude that the plaintiffs have adequately stated a claim against the individual defendants under 42 U.S.C. § 1983. We also find that the defendants are not entitled to official immunity. We therefore REVERSE the district court’s decision to dismiss the plaintiffs’ claim for damages, and we REMAND the case for further proceedings consistent with this opinion. Because the case no longer depends in any way upon the location or the outcome of the Lelsz litigation, we trust that the parties will cooperate with the district court in a speedier progress toward a final resolution of this dispute than the last three years have seen.