window: Don't treat an output_id of 0 as an invalid ID

This commit is contained in:
Jasper St. Pierre 2014-07-01 13:18:31 -04:00
parent 110c79d10e
commit 42c972735e

View File

@ -3536,7 +3536,7 @@ find_monitor_by_id (MetaWindow *window,
{
MetaMonitorInfo *info = &window->screen->monitor_infos[i];
if (info->output_id != 0 && info->output_id == id)
if (info->output_id == id)
return info;
}