diff options
author | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2008-08-28 03:56:16 +0200 |
---|---|---|
committer | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2008-08-28 03:56:16 +0200 |
commit | f6f19d096be6fbe47b06801a8d8eda39d610b4ca (patch) | |
tree | c0d2926b3fecf8299fbd053c75b413d49169f316 | |
parent | 60a683b15ab3cf83d1b537d8af412b1ac6198262 (diff) | |
download | zcomp-f6f19d096be6fbe47b06801a8d8eda39d610b4ca.tar.gz zcomp-f6f19d096be6fbe47b06801a8d8eda39d610b4ca.tar.bz2 |
Add object to parent, after it has been initialized in other plugins.
-rw-r--r-- | src/display.cpp | 4 | ||||
-rw-r--r-- | src/screen.cpp | 3 | ||||
-rw-r--r-- | src/window.cpp | 3 |
3 files changed, 4 insertions, 6 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); diff --git a/src/screen.cpp b/src/screen.cpp index 1f039c1..85a0a4a 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -1215,11 +1215,10 @@ CompScreen::init (CompDisplay *display, priv->getDesktopHints (); - display->addChild (this); - /* TODO: bailout properly when objectInitPlugins fails */ assert (CompPlugin::objectInitPlugins (this)); + display->addChild (this); XQueryTree (dpy, priv->root, diff --git a/src/window.cpp b/src/window.cpp index 558ec8e..350aeb1 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -4644,11 +4644,10 @@ CompWindow::CompWindow (CompScreen *screen, } } - screen->addChild (this); - /* TODO: bailout properly when objectInitPlugins fails */ assert (CompPlugin::objectInitPlugins (this)); + screen->addChild (this); recalcActions (); updateIconGeometry (); |