mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 22:54:08 +00:00
clutter-backend: Fix the error check in _clutter_backend_create_stage
Commit d2bdd3cb62 fixed some compiler warnings but also broke the ability to create a stage. Although not having warnings from the compiler is nice, it is also nice to be able to create a stage so lets not invert the meaning of the error check.
This commit is contained in:
parent
7b1925df82
commit
ca3ab41a1b
@ -290,7 +290,7 @@ _clutter_backend_create_stage (ClutterBackend *backend,
|
|||||||
else
|
else
|
||||||
stage_window = NULL;
|
stage_window = NULL;
|
||||||
|
|
||||||
if (stage_window != NULL)
|
if (stage_window == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
g_assert (CLUTTER_IS_STAGE_WINDOW (stage_window));
|
g_assert (CLUTTER_IS_STAGE_WINDOW (stage_window));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user