x11: Fix incorrect output counting logic

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Bryce Harrington 2016-05-03 01:34:23 -07:00
parent e16acabf7a
commit aa258985e9

View File

@ -911,7 +911,7 @@ load_x11_backend(struct weston_compositor *c, char const * backend,
}
output_count++;
if (option_count && output_count >= option_count)
if (output_count >= option_count)
break;
}