swayfx/include/sway/desktop
Kenny Levinsen 152a559e30 idle_inhibit: Store wlr inhibitor instead of view
When an application inhibited idle, a view pointer was stored and a
destroy listener was registered to the wlr inhibitor. As the wlr
inhibitor lives longer than the view, this lead to a dangling view
pointer between view unmap and inhibitor destroy.

Store a pointer to the wlr inhibitor instead of to the view, and look up
the view when needed, which may at any point be NULL. This also allows
for an inhibitor to remain functional if a surface is re-mapped.
2021-03-21 12:27:29 +01:00
..
idle_inhibit_v1.h idle_inhibit: Store wlr inhibitor instead of view 2021-03-21 12:27:29 +01:00
transaction.h transaction: Remove unused ready_immediately 2021-02-23 19:38:05 +01:00