Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -16,6 +16,7 @@ · 15 unmodified lines | ||
| 16 | 16 | |
| 17 | 17 | #include "Application.h" |
| 18 | 18 | #include "MainWindow.h" |
| 19 | +#include <display-plugins/CompositorHelper.h> | |
| 19 | 20 | |
| 20 | 21 | int DesktopScriptingInterface::getWidth() { |
| 21 | 22 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); |
| @@ -25,3 +26,8 @@ int DesktopScriptingInterface::getHeight() { · 3 unmodified lines | ||
| 25 | 26 | QSize size = qApp->getWindow()->windowHandle()->screen()->virtualSize(); |
| 26 | 27 | return size.height(); |
| 27 | 28 | } |
| 29 | + | |
| 30 | +void DesktopScriptingInterface::setOverlayAlpha(float alpha) { | |
| 31 | + qApp->getApplicationCompositor().setAlpha(alpha); | |
| 32 | +} | |
| 33 | + | |