Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 17 files). Show all
Unified · Split
| @@ -44,7 +44,7 @@ WebWindowClass* WindowScriptingInterface::doCreateWebWindow(const QString& title · 43 unmodified lines | ||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | QScriptValue WindowScriptingInterface::hasFocus() { |
| 47 | − return DependencyManager::get<GLCanvas>()->hasFocus(); | |
| 47 | + return Application::getInstance()->getGLWidget()->hasFocus(); | |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | void WindowScriptingInterface::setFocus() { |