mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
On error, return FALSE in the post_parse hook
Anything that is not CLUTTER_INIT_SUCCESS is to be considered an error. This fixes the Clutter initialization sequence to actually error out on pre-conditions and backend initialization failures.
This commit is contained in:
parent
8bde5febd1
commit
bed392b9a5
@ -1704,7 +1704,7 @@ post_parse_hook (GOptionContext *context,
|
||||
* which in turn calls the backend post parse hooks.
|
||||
*/
|
||||
if (!clutter_context->defer_display_setup)
|
||||
return clutter_init_real (error);
|
||||
return clutter_init_real (error) == CLUTTER_INIT_SUCCESS;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user