void SingleWindowWatcher::windowRemoved(WId id)
{
if (m_active_window.key() == id) {
m_active_window = m_window_map.end();
}
m_window_map.remove(id);