Dmming support. Window is now global (performance++, code quality--)