If a crtc has no outputs, then skip it.

This fixes an issue where "monitors" would be created with only a stand.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-03-20 13:39:57 +00:00
parent 984f1b8779
commit 723825e49e
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ e_smart_randr_monitors_create(Evas_Object *obj)
/* get this outputs crtc */
rcrtc = ecore_x_randr_output_crtc_get(root, routputs[j]);
if (!rcrtc) continue;
/* if crtc is not 0 (disabled), then check if it matches
* the one we are currently working with. If it does not