This is a hack taking advantage of the fact that LauncherApplication::updateHasVisibleWindow is called at the right time.
Instead you need to define a slot that will do Q_EMIT windowCountChanged(windowCount()); and connect it to BamfApplication::WindowAdded and BamfApplication::WindowRemoved signals.
=== modified file 'launcher/ UnityApplicatio ns/launcherappl ication. cpp'
@@ -394,6 +404,8 @@ visible_ window != prev) wChanged( m_has_visible_ window) ; ged(windowCount ());
}
if (m_has_
emit hasVisibleWindo
+
+ Q_EMIT windowCountChan
}
This is a hack taking advantage of the fact that LauncherApplica tion::updateHas VisibleWindow is called at the right time.
Instead you need to define a slot that will do Q_EMIT windowCountChan ged(windowCount ()); and connect it to BamfApplication ::WindowAdded and BamfApplication ::WindowRemoved signals.