hotkey should hide launchy if it isn't active
Brought to you by:
karlinjf
Sometimes the focus change is not noticed and pressing the hotkey hides launchy although it isn't active.
This fixes the latter:
void MyWidget::onHotKey() {
if (menuOpen || optionsOpen) {
showLaunchy();
return;
}
if (isVisible() && QApplication::activeWindow () !=0) {
hideLaunchy();
}
else {
showLaunchy();
}
}