randr: add error print

This commit is contained in:
Sebastian Dransfeld 2014-12-17 11:19:25 +01:00
parent e7e51c9c12
commit d69848f63c
1 changed files with 6 additions and 1 deletions

View File

@ -1269,7 +1269,12 @@ _e_randr_crtc_from_outputs_set(E_Randr_Crtc *crtc)
{
if (!output->active) continue;
/* TODO: If status != connected, active should not be set */
if (output->status != ECORE_X_RANDR_CONNECTION_STATUS_CONNECTED) continue;
if (output->status != ECORE_X_RANDR_CONNECTION_STATUS_CONNECTED)
{
printf("RRR: Error, unconnected output which is active.");
printf(" output: '%s' lid: %i active: %i status: %i\n", output->na
continue;
}
printf("RRR: output: '%s' lid: %i active: %i status: %i\n", output->name, output->is_lid, output->active, output->status);
/* TODO: Match all connected outputs, not only the first */
crtc->mode = output->mode;