Update WindowManager.cpp