mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
libs: do not emit KTaskManager::taskChanged() signal on active window change
was used to repaint the tasks applet widgets but no more Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a55afc6fb8
commit
c0c8ad2e60
1 changed files with 0 additions and 18 deletions
|
@ -72,7 +72,6 @@ private Q_SLOTS:
|
|||
void slotNewWindow(const WId window);
|
||||
void slotChangedWindow(const WId window);
|
||||
void slotRemovedWindow(const WId window);
|
||||
void slotActiveWindow();
|
||||
|
||||
private:
|
||||
QMutex m_mutex;
|
||||
|
@ -106,10 +105,6 @@ KTaskManagerPrivate::KTaskManagerPrivate(QObject *parent)
|
|||
KWindowSystem::self(), SIGNAL(windowRemoved(WId)),
|
||||
this, SLOT(slotRemovedWindow(WId))
|
||||
);
|
||||
connect(
|
||||
KWindowSystem::self(), SIGNAL(activeWindowChanged(WId)),
|
||||
this, SLOT(slotActiveWindow())
|
||||
);
|
||||
}
|
||||
|
||||
void KTaskManagerPrivate::slotNewWindow(const WId window)
|
||||
|
@ -160,19 +155,6 @@ void KTaskManagerPrivate::slotRemovedWindow(const WId window)
|
|||
}
|
||||
}
|
||||
|
||||
void KTaskManagerPrivate::slotActiveWindow()
|
||||
{
|
||||
// the active state is not tracked so it is unknown which window became inactive
|
||||
KTaskManager* ktaskmanager = qobject_cast<KTaskManager*>(parent());
|
||||
QMutexLocker locker(&m_mutex);
|
||||
QMutableListIterator<KTaskManager::Task> iter(tasks);
|
||||
while (iter.hasNext()) {
|
||||
KTaskManager::Task &task = iter.next();
|
||||
kUpdateTask(task);
|
||||
emit ktaskmanager->taskChanged(task);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
K_GLOBAL_STATIC(KTaskManager, globalktaskmanager)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue