randr: don't try to enable crtc with no outputs

This commit is contained in:
Sebastian Dransfeld 2014-12-17 10:35:12 +01:00
parent 7f14d81e6a
commit 9b4bace831
1 changed files with 7 additions and 0 deletions

View File

@ -598,6 +598,13 @@ _e_randr_apply(void)
Ecore_X_Randr_Output *coutputs;
printf("RRR2: crtc: %x %i %i %ix%i rot: %i mode: %i\n", crtc->xid, crtc->geo.x, crtc->geo.y, crtc->geo.w, crtc->geo.h, crtc->orient, crtc->mode);
if (!crtc->outputs)
{
printf("RRR2: no outputs - off\n");
ecore_x_randr_crtc_settings_set(root, crtc->xid, NULL, 0, 0, 0, 0,
ECORE_X_RANDR_ORIENTATION_ROT_0);
continue;
}
/* set config from connected outputs */
_e_randr_crtc_from_outputs_set(crtc);