|
|
|
@ -87,7 +87,7 @@ void DesktopTracker::registerForDesktops( Task* task, DesktopList desktopList)
|
|
|
|
|
TaskVector::iterator tit = std::find(v->begin(), v->end(), task);
|
|
|
|
|
if (tit != v->end())
|
|
|
|
|
desktopTracker[i].erase(tit);
|
|
|
|
|
// if the task was priviously tracking this desktop then
|
|
|
|
|
// if the task was previously tracking this desktop then
|
|
|
|
|
// emit a signal that is not tracking it any more
|
|
|
|
|
if( i == kWinModule.currentDesktop() -1)
|
|
|
|
|
emit leftActiveDesktop(task);
|
|
|
|
@ -113,7 +113,7 @@ void DesktopTracker::registerForDesktops( Task* task, DesktopList desktopList)
|
|
|
|
|
if (tit != v.end()) // not in start vector any more
|
|
|
|
|
{
|
|
|
|
|
v.erase(tit); // so we delete it from desktopTracker
|
|
|
|
|
// if the task was priviously tracking this desktop then
|
|
|
|
|
// if the task was previously tracking this desktop then
|
|
|
|
|
// emit a signal that is not tracking it any more
|
|
|
|
|
if( i == kWinModule.currentDesktop() -1)
|
|
|
|
|
emit leftActiveDesktop(task);
|
|
|
|
|