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.
This commit is contained in:
Bryce Harrington
2016-08-29 18:11:26 -07:00
parent e7069bcf93
commit 9be807c69b
2 changed files with 38 additions and 1 deletions
+4 -1
View File
@@ -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