Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -60,7 +60,9 @@ static const QVariantMap RELATIVE_POSITION_ANCHOR { · 59 unmodified lines | ||
| 60 | 60 | }; |
| 61 | 61 | |
| 62 | 62 | DesktopScriptingInterface::DesktopScriptingInterface(QObject* parent, bool restricted) |
| 63 | − : QObject(parent), _restricted(restricted) { } | |
| 63 | + : QObject(parent), _restricted(restricted) { | |
| 64 | + connect(this, &DesktopScriptingInterface::uiFocusChanged, [this] (bool isActive) { _isOverlayWindowFocused = isActive; }); | |
| 65 | +} | |
| 64 | 66 | |
| 65 | 67 | int DesktopScriptingInterface::getWidth() { |
| 66 | 68 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); |