diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2016-08-29 18:11:26 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-08-29 18:36:13 -0700 |
commit | 9be807c69b1249390bb213e5403b9183738777f4 (patch) | |
tree | d71ad91740a93172f1f9f754ea2afd2bbff0b42c /libweston | |
parent | e7069bcf93b2ffcf04b4128cb468fe83dc18baea (diff) |
shell: Inhibit idle fade-out behavior
When a client has registered idle inhibition on a surface, don't trigger
the fade-out animation on the output(s) the surface is displayed on.
But when the surface is destroyed or the inhibitor itself is destroyed
by client request, re-queue the fade out animation.
Diffstat (limited to 'libweston')
-rw-r--r-- | libweston/compositor.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libweston/compositor.c b/libweston/compositor.c index f5039333..a92e764c 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -3930,7 +3930,10 @@ bind_subcompositor(struct wl_client *client, compositor, NULL); } -/** Set a DPMS mode on all of the compositor's outputs +/** Apply a DPMS mode to the compositor's outputs. + * + * Outputs may skip setting the DPMS state if they are being used to + * display an surface that is requesting idle behaviors be inhibited. * * \param compositor The compositor instance * \param state The DPMS state the outputs will be set to |