mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-22 09:33:54 +03:00
fix broken initialization of windows tracking
--some improvements of 0.10.5 broke the windows tracking initialization. This is a fix in order for windows tracking to be enabled/disabled properly per dock/panel during startup phase.
This commit is contained in:
parent
51f166bf51
commit
4e28392c3e
@ -35,14 +35,9 @@ WindowsTracker::WindowsTracker(Latte::View *parent)
|
||||
}
|
||||
});
|
||||
|
||||
connect(m_latteView->positioner(), &Positioner::startupFinished, this, [&]() {
|
||||
//! During startup phase windows tracking is not enabled and does not
|
||||
//! influence startup sequence at all. At the same time to windows tracking
|
||||
//! takes place during startup and as such startup time is reduced
|
||||
m_wm->windowsTracker()->addView(m_latteView);
|
||||
emit allScreensChanged();
|
||||
emit currentScreenChanged();
|
||||
});
|
||||
m_wm->windowsTracker()->addView(m_latteView);
|
||||
emit allScreensChanged();
|
||||
emit currentScreenChanged();
|
||||
}
|
||||
|
||||
WindowsTracker::~WindowsTracker()
|
||||
|
@ -79,10 +79,10 @@ protected:
|
||||
Tracker::Windows *m_tracker{nullptr};
|
||||
|
||||
private:
|
||||
bool m_enabled;
|
||||
bool m_activeWindowMaximized;
|
||||
bool m_existsWindowActive;
|
||||
bool m_existsWindowMaximized;
|
||||
bool m_enabled{false};
|
||||
bool m_activeWindowMaximized{false};
|
||||
bool m_existsWindowActive{false};
|
||||
bool m_existsWindowMaximized{false};
|
||||
|
||||
bool m_isTrackingCurrentActivity{true};
|
||||
|
||||
|
@ -319,7 +319,10 @@ Item {
|
||||
Binding{
|
||||
target: latteView && latteView.windowsTracker ? latteView.windowsTracker : null
|
||||
property: "enabled"
|
||||
when: latteView && latteView.windowsTracker && latteView.visibility
|
||||
//! During startup phase windows tracking is not enabled and does not
|
||||
//! influence startup sequence at all. At the same time no windows tracking
|
||||
//! takes place during startup and as such startup time is reduced
|
||||
when: latteView && latteView.windowsTracker && latteView.visibility && !root.inStartup
|
||||
value: (latteView && latteView.visibility
|
||||
&& !(latteView.visibility.mode === LatteCore.Types.AlwaysVisible /* Visibility */
|
||||
|| latteView.visibility.mode === LatteCore.Types.WindowsGoBelow
|
||||
|
Loading…
Reference in New Issue
Block a user