Update active flag and notify "window_active_changed" to the client when the application is deactivated.
git-svn-id: http://voip.null.ro/svn/yate@3976 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
9846a6ca78
commit
129e031810
|
@ -2086,6 +2086,12 @@ bool QtWindow::event(QEvent* ev)
|
|||
m_active = true;
|
||||
Client::self()->toggle(this,"window_active_changed",true);
|
||||
}
|
||||
else if (ev->type() == QEvent::ApplicationDeactivate) {
|
||||
if (m_active) {
|
||||
m_active = false;
|
||||
Client::self()->toggle(this,"window_active_changed",true);
|
||||
}
|
||||
}
|
||||
return QWidget::event(ev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue