forked from AuroraMiddleware/gtk
Don't decrement the init_ref_count towards -infinity
Once we are at zero, initialization is done.
This commit is contained in:
parent
7069f6a251
commit
93e5d83a9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user