IdleInhibitManagerV1 QML Type

Provides an extension that allows to inhibit the idle behavior of the compositor. 更多...

import 语句: import QtWayland.Compositor 1.2
Since: Qt 5.14
实例化: QWaylandIdleInhibitManagerV1

详细描述

The IdleInhibitManagerV1 extension provides a way for a client to inhibit the idle behavior of the compositor when a specific surface is visually relevant to the user.

IdleInhibitManagerV1 corresponds to the Wayland interface, zwp_idle_inhibit_manager_v1 .

To provide the functionality of the extension in a compositor, create an instance of the IdleInhibitManagerV1 component and add it to the list of extensions supported by the compositor:

import QtWayland.Compositor
WaylandCompositor {
    IdleInhibitManagerV1 {
        // ...
    }
}
					

Inhibited surfaces have the WaylandSurface::inhibitsIdle 特性被设为 true .

另请参阅 WaylandSurface::inhibitsIdle .