6#include <phosphorwayland_export.h>
29 Q_PROPERTY(QWindow* surface READ surface WRITE setSurface NOTIFY surfaceChanged)
30 Q_PROPERTY(
bool active READ isActive NOTIFY activeChanged)
48 void createInhibitor();
49 void destroyInhibitor();
52 std::unique_ptr<Private> d;
Prevents the compositor from idling the output that the associated surface is visible on.
Definition IdleInhibitor.h:27
void setSurface(QWindow *window)
static bool isSupported()
QWindow * surface() const
IdleInhibitor(QObject *parent=nullptr)
~IdleInhibitor() override
Definition CompositorLost.h:11