aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-03-20 12:30:53 +0100
committerFurkan Sahin <furkan-dev@proton.me>2021-03-20 12:30:53 +0100
commit641a2f10482e08ee6cbd0fe461b3d0a4a8a65c96 (patch)
tree85acf3cb2d17c1e4eaa312813053de5b6e3bcd14 /swaybar
parent3f7386128b537dbd71993b0f3a563f8b49f22fb4 (diff)
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.
Diffstat (limited to 'swaybar')
0 files changed, 0 insertions, 0 deletions