mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 08:51:27 +00:00
152a559e30
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. |
||
---|---|---|
.. | ||
idle_inhibit_v1.h | ||
transaction.h |