summaryrefslogtreecommitdiff
path: root/src/display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.cpp')
-rw-r--r--src/display.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.cpp b/src/display.cpp
index 214f75b..f837366 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -811,11 +811,11 @@ CompDisplay::init (const char *name)
priv->returnKeyCode =
XKeysymToKeycode (priv->dpy, XStringToKeysym ("Return"));
- core->addChild (this);
-
/* TODO: bailout properly when objectInitPlugins fails */
assert (CompPlugin::objectInitPlugins (this));
+ core->addChild (this);
+
if (onlyCurrentScreen)
{
firstScreen = DefaultScreen (priv->dpy);