forked from enlightenment/enlightenment
randr: remember crtc in output struct
This commit is contained in:
parent
2b4a70b283
commit
82e7d1184c
|
@ -1168,12 +1168,14 @@ _e_randr_output_active_set(E_Randr_Output *output, Eina_Bool active)
|
|||
{
|
||||
crtc->outputs =
|
||||
eina_list_append(crtc->outputs, output);
|
||||
output->crtc = crtc;
|
||||
e_randr->active++;
|
||||
}
|
||||
else
|
||||
{
|
||||
crtc->outputs =
|
||||
eina_list_remove(crtc->outputs, output);
|
||||
output->crtc = NULL;
|
||||
e_randr->active--;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@ struct _E_Randr_Output
|
|||
Eina_Bool active; // if this output is active
|
||||
|
||||
E_Config_Randr_Output *cfg;
|
||||
E_Randr_Crtc *crtc;
|
||||
};
|
||||
|
||||
struct _E_Randr_Crtc
|
||||
|
|
Loading…
Reference in New Issue