diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index f3381fbb01..eb75efdb31 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -313,6 +313,7 @@ TabBox::TabBox(QObject *parent) m_tabBoxMode = TabBoxDesktopMode; // init variables connect(&m_delayedShowTimer, SIGNAL(timeout()), this, SLOT(show())); + connect(Workspace::self(), SIGNAL(configChanged()), this, SLOT(reconfigure())); } TabBox::~TabBox() diff --git a/tabbox/tabbox.h b/tabbox/tabbox.h index 9c77fa0ab5..498d9e82b6 100644 --- a/tabbox/tabbox.h +++ b/tabbox/tabbox.h @@ -146,8 +146,6 @@ public: void handleMouseEvent(XEvent*); void grabbedKeyEvent(QKeyEvent* event); - void reconfigure(); - bool isGrabbed() const { return m_tabGrab || m_desktopGrab; }; @@ -216,6 +214,9 @@ private: void removeTabBoxGrab(); void modalActionsSwitch(bool enabled); +private Q_SLOTS: + void reconfigure(); + private: TabBoxMode m_tabBoxMode; QModelIndex m_index; diff --git a/workspace.cpp b/workspace.cpp index 18e2173f2e..1a48194baf 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -930,9 +930,6 @@ void Workspace::slotReconfigure() KGlobal::config()->reparseConfiguration(); unsigned long changed = options->updateSettings(); -#ifdef KWIN_BUILD_TABBOX - tab_box->reconfigure(); -#endif emit configChanged(); initPositioning->reinitCascading(0); discardPopup();