IdleInhibitManagerV1 QML Type

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

导入语句: import QtWayland.Compositor 1.15
Since: Qt 5.14

详细描述

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 1.15
WaylandCompositor {
    IdleInhibitManagerV1 {
        // ...
    }
}
					

Inhibited surfaces have the WaylandSurface::inhibitsIdle property set to true .

另请参阅 WaylandSurface::inhibitsIdle .