Improve smart hide
This commit is contained in:
parent
87e03b6723
commit
bf7921a171
2 changed files with 9 additions and 6 deletions
|
@ -62,11 +62,6 @@ void Activity::onActiveWindowChanged()
|
||||||
|
|
||||||
bool launchPad = info.windowClassClass() == "cutefish-launcher";
|
bool launchPad = info.windowClassClass() == "cutefish-launcher";
|
||||||
|
|
||||||
if (m_launchPad != launchPad) {
|
|
||||||
m_launchPad = launchPad;
|
|
||||||
emit launchPadChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (DockSettings::self()->visibility() == DockSettings::IntellHide) {
|
if (DockSettings::self()->visibility() == DockSettings::IntellHide) {
|
||||||
bool existsWindowMaximized = false;
|
bool existsWindowMaximized = false;
|
||||||
|
|
||||||
|
@ -88,6 +83,11 @@ void Activity::onActiveWindowChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_launchPad != launchPad) {
|
||||||
|
m_launchPad = launchPad;
|
||||||
|
emit launchPadChanged();
|
||||||
|
}
|
||||||
|
|
||||||
m_pid = info.pid();
|
m_pid = info.pid();
|
||||||
m_windowClass = info.windowClassClass().toLower();
|
m_windowClass = info.windowClassClass().toLower();
|
||||||
}
|
}
|
||||||
|
|
|
@ -352,7 +352,8 @@ void MainWindow::onVisibilityChanged()
|
||||||
{
|
{
|
||||||
// Always show
|
// Always show
|
||||||
// Must remain displayed when launchpad is opened.
|
// Must remain displayed when launchpad is opened.
|
||||||
if (m_settings->visibility() == DockSettings::AlwaysShow || m_activity->launchPad()) {
|
if (m_settings->visibility() == DockSettings::AlwaysShow
|
||||||
|
|| m_activity->launchPad()) {
|
||||||
m_hideTimer->stop();
|
m_hideTimer->stop();
|
||||||
|
|
||||||
setGeometry(windowRect());
|
setGeometry(windowRect());
|
||||||
|
@ -367,6 +368,8 @@ void MainWindow::onVisibilityChanged()
|
||||||
|
|
||||||
if (m_activity->launchPad())
|
if (m_activity->launchPad())
|
||||||
return;
|
return;
|
||||||
|
else
|
||||||
|
m_hideBlocked = false;
|
||||||
|
|
||||||
if (m_settings->visibility() == DockSettings::IntellHide) {
|
if (m_settings->visibility() == DockSettings::IntellHide) {
|
||||||
clearViewStruts();
|
clearViewStruts();
|
||||||
|
|
Loading…
Reference in a new issue