diff options
author | 2019-03-09 02:23:20 -0500 | |
---|---|---|
committer | 2019-03-11 10:02:52 +0100 | |
commit | 017a7c4da169ace601f282c87a9aaabc138a34d3 (patch) | |
tree | a5c0370608ad04223fecdcd7890c3b1559dff39e /swaybar/tray/item.c | |
parent | detect_proprietary: use strncmp (diff) | |
download | sway-017a7c4da169ace601f282c87a9aaabc138a34d3.tar.gz sway-017a7c4da169ace601f282c87a9aaabc138a34d3.tar.zst sway-017a7c4da169ace601f282c87a9aaabc138a34d3.zip |
sway_view_child: add listener for view unmap
Since not all child views's have an unmap event, it is possible for it
to still be mapped (default state) in the destruction handler. When
the destruction handler is called, the corresponding view may have
already been freed and the memory location reallocated. This adds a
listener for the view unmapping and removes the mapped status. This
ensures that the child view is damaged due to destruction while the
view still exists and not after.
Diffstat (limited to 'swaybar/tray/item.c')
0 files changed, 0 insertions, 0 deletions