mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 19:50:11 +01:00
Only clear crtc of output if it is the one we're actually working on.
Upon recreation of the RandR internal data structures in RRCrtcNotify() the crtc of an output could be NULLed if the crtc was shared (cloned) between two outputs and one of them got another crtc assigned.
This commit is contained in:
parent
f48087b6c3
commit
f7dd0c72b8
1 changed files with 2 additions and 1 deletions
|
|
@ -150,7 +150,8 @@ RRCrtcNotify (RRCrtcPtr crtc,
|
|||
break;
|
||||
if (i == numOutputs)
|
||||
{
|
||||
crtc->outputs[j]->crtc = NULL;
|
||||
if (crtc->outputs[j]->crtc == crtc)
|
||||
crtc->outputs[j]->crtc = NULL;
|
||||
RROutputChanged (crtc->outputs[j], FALSE);
|
||||
RRCrtcChanged (crtc, FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue