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";
|
||||
|
||||
if (m_launchPad != launchPad) {
|
||||
m_launchPad = launchPad;
|
||||
emit launchPadChanged();
|
||||
}
|
||||
|
||||
if (DockSettings::self()->visibility() == DockSettings::IntellHide) {
|
||||
bool existsWindowMaximized = false;
|
||||
|
||||
|
@ -88,6 +83,11 @@ void Activity::onActiveWindowChanged()
|
|||
}
|
||||
}
|
||||
|
||||
if (m_launchPad != launchPad) {
|
||||
m_launchPad = launchPad;
|
||||
emit launchPadChanged();
|
||||
}
|
||||
|
||||
m_pid = info.pid();
|
||||
m_windowClass = info.windowClassClass().toLower();
|
||||
}
|
||||
|
|
|
@ -352,7 +352,8 @@ void MainWindow::onVisibilityChanged()
|
|||
{
|
||||
// Always show
|
||||
// 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();
|
||||
|
||||
setGeometry(windowRect());
|
||||
|
@ -367,6 +368,8 @@ void MainWindow::onVisibilityChanged()
|
|||
|
||||
if (m_activity->launchPad())
|
||||
return;
|
||||
else
|
||||
m_hideBlocked = false;
|
||||
|
||||
if (m_settings->visibility() == DockSettings::IntellHide) {
|
||||
clearViewStruts();
|
||||
|
|
Loading…
Reference in a new issue