mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-25 19:21:41 +03:00
remove deprecated m_views from AbstractWMInterface
This commit is contained in:
parent
a295352514
commit
945c6e50e2
@ -92,8 +92,6 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
|
||||
}
|
||||
});
|
||||
|
||||
m_wm->addView(m_latteView->winId());
|
||||
|
||||
restoreConfig();
|
||||
}
|
||||
|
||||
@ -101,7 +99,6 @@ VisibilityManager::~VisibilityManager()
|
||||
{
|
||||
qDebug() << "VisibilityManager deleting...";
|
||||
m_wm->removeViewStruts(*m_latteView);
|
||||
m_wm->removeView(m_latteView->winId());
|
||||
|
||||
if (m_edgeGhostWindow) {
|
||||
m_edgeGhostWindow->deleteLater();
|
||||
|
@ -68,20 +68,6 @@ AbstractWindowInterface::~AbstractWindowInterface()
|
||||
m_schemes.clear();
|
||||
}
|
||||
|
||||
void AbstractWindowInterface::addView(WindowId wid)
|
||||
{
|
||||
m_views.push_back(wid);
|
||||
}
|
||||
|
||||
void AbstractWindowInterface::removeView(WindowId wid)
|
||||
{
|
||||
auto it = std::find(m_views.begin(), m_views.end(), wid);
|
||||
|
||||
if (it != m_views.end())
|
||||
m_views.erase(it);
|
||||
}
|
||||
|
||||
|
||||
//! Scheme support for windows
|
||||
void AbstractWindowInterface::updateDefaultScheme()
|
||||
{
|
||||
|
@ -94,9 +94,6 @@ public:
|
||||
virtual bool windowCanBeDragged(WindowId wid) const = 0;
|
||||
virtual WindowId winIdFor(QString appId, QRect geometry) const = 0;
|
||||
|
||||
void addView(WindowId wid);
|
||||
void removeView(WindowId wid);
|
||||
|
||||
SchemeColors *schemeForWindow(WindowId wId);
|
||||
void setColorSchemeForWindow(WindowId wId, QString scheme);
|
||||
|
||||
@ -110,7 +107,6 @@ signals:
|
||||
|
||||
protected:
|
||||
std::list<WindowId> m_windows;
|
||||
std::list<WindowId> m_views;
|
||||
QPointer<KActivities::Consumer> m_activities;
|
||||
|
||||
private slots:
|
||||
|
@ -438,10 +438,6 @@ bool XWindowInterface::isValidWindow(const KWindowInfo &winfo) const
|
||||
|
||||
void XWindowInterface::windowChangedProxy(WId wid, NET::Properties prop1, NET::Properties2 prop2)
|
||||
{
|
||||
//! if the view changed is ignored
|
||||
if (std::find(m_views.cbegin(), m_views.cend(), wid) != m_views.cend())
|
||||
return;
|
||||
|
||||
const auto winType = KWindowInfo(wid, NET::WMWindowType).windowType(NET::DesktopMask);
|
||||
const auto winClass = KWindowInfo(wid, 0, NET::WM2WindowClass).windowClassName();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user