You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
847 B
C++
41 lines
847 B
C++
/*
|
|
SPDX-FileCopyrightText: 2019 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "trackedlayoutinfo.h"
|
|
|
|
//local
|
|
#include "windowstracker.h"
|
|
#include "../../layout/genericlayout.h"
|
|
|
|
namespace Latte {
|
|
namespace WindowSystem {
|
|
namespace Tracker {
|
|
|
|
|
|
TrackedLayoutInfo::TrackedLayoutInfo(Tracker::Windows *tracker, Latte::Layout::GenericLayout *layout)
|
|
: TrackedGeneralInfo(tracker),
|
|
m_layout(layout)
|
|
{
|
|
m_activities = m_layout->appliedActivities();
|
|
|
|
connect(m_layout, &Latte::Layout::GenericLayout::activitiesChanged, this, [&]() {
|
|
m_activities = m_layout->appliedActivities();
|
|
updateTrackingCurrentActivity();
|
|
});
|
|
}
|
|
|
|
TrackedLayoutInfo::~TrackedLayoutInfo()
|
|
{
|
|
}
|
|
|
|
Latte::Layout::GenericLayout *TrackedLayoutInfo::layout() const
|
|
{
|
|
return m_layout;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|