Don't decrement the init_ref_count towards -infinity

Once we are at zero, initialization is done.
This commit is contained in:
Matthias Clasen 2013-03-26 21:27:21 -04:00
parent 7069f6a251
commit 93e5d83a9d

View File

@ -872,8 +872,10 @@ output_handle_geometry(void *data,
monitor->output_name = g_strdup (model);
/* Once we have the geometry event we know we have all events
* from the wl_output and need no further init roundtrips. */
display->init_ref_count--;
* from the wl_output and need no further init roundtrips.
*/
if (display->init_ref_count > 0)
display->init_ref_count--;
}
static void