Commit graph

2 commits

Author SHA1 Message Date
hujianwei
c4f2e07a4b Detect idle inhibition on subsurfaces
* compositor.h: Update prototypes.
* idle_inhibit.c (DetectSurfaceIdleInhibit): Handle subsurfaces;
when an inhibitor attached to a subsurface is displayed, check
if the subsurface's root is focused or not.
(CreateInhibitor): Likewise; handle subsurfaces specially.
* subcompositor.c (ViewisVisible): New function.
* subsurface.c (struct _Subsurface): New field `mapped'.
(Commit, Teardown): Update idle inhibition when the surface is
mapped or unmapped.
(XLSubsurfaceGetRoot): New function.
2022-10-22 05:48:23 +00:00
hujianwei
0b2a069ac5 Check in files for idle inhibition
* idle-inhibit-unstable-v1.xml:
* idle_inhibit.c:
* process.c: New files.
2022-10-22 04:43:14 +00:00