summaryrefslogtreecommitdiffstats
path: root/kdesktop/bgmanager.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-07 06:11:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-07 06:11:33 +0000
commit39dc2df1abb736f0e4053e287a343e1a7001d1c4 (patch)
treeb84da8163252cba1ae5175f738b2fea54c2e928e /kdesktop/bgmanager.cc
parent47a3b88d5b3fad6958e60a417cea3059b84d1bb6 (diff)
downloadtdebase-39dc2df1abb736f0e4053e287a343e1a7001d1c4.tar.gz
tdebase-39dc2df1abb736f0e4053e287a343e1a7001d1c4.zip
Work around glibc/libstdc/gcc/g++ nested new() object bug
Closes Bug #456 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1227273 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/bgmanager.cc')
-rw-r--r--kdesktop/bgmanager.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/kdesktop/bgmanager.cc b/kdesktop/bgmanager.cc
index bbcb7bf23..19d24870c 100644
--- a/kdesktop/bgmanager.cc
+++ b/kdesktop/bgmanager.cc
@@ -59,9 +59,20 @@ extern KDesktopApp *myApp;
/**** KBackgroundManager ****/
+KBackgroundManager::KBackgroundManager()
+ : DCOPObject("KBackgroundIface")
+{
+ // Everything will be initialized later
+}
+
KBackgroundManager::KBackgroundManager(TQWidget *desktop, KWinModule* kwinModule)
: DCOPObject("KBackgroundIface")
{
+ initializeManager(desktop, kwinModule);
+}
+
+void KBackgroundManager::initializeManager(TQWidget *desktop, KWinModule* kwinModule)
+{
if( !properties_inited )
{
prop_root = XInternAtom(qt_xdisplay(), "_XROOTPMAP_ID", False);