2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

fixed win version after os x build

This commit is contained in:
John Preston
2014-06-25 21:50:27 +04:00
parent 0c7baa86a4
commit e5d083ca13
14 changed files with 19 additions and 18 deletions

View File

@@ -895,8 +895,9 @@ void PsMainWindow::psIdleTimeout() {
}
}
bool PsMainWindow::psIsActive() const {
return isActiveWindow() && isVisible() && !(windowState() & Qt::WindowMinimized) && !psIdle;
bool PsMainWindow::psIsActive(int state) const {
if (state < 0) state = this->windowState();
return isActiveWindow() && isVisible() && !(state & Qt::WindowMinimized) && !psIdle;
}
bool PsMainWindow::psIsOnline(int windowState) const {