diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2023-01-02 12:37:02 +0100 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2023-01-02 12:39:39 +0100 |
commit | fee19f79bb41a9f90c25b3470ec2806be7293607 (patch) | |
tree | 96ccf881c905d60f26be328c356b9e20fc921293 /PKGBUILD | |
parent | d038736165f95a3141a722753ae0bfddcc1c0576 (diff) | |
download | wbg-fee19f79bb41a9f90c25b3470ec2806be7293607.tar.gz |
main: implement layer_surface::closed() event
Destroy the surface, and clear the ‘configured’ flag.
Note that we need to take care we don’t reference a destroyed output
object; if the compositor destroyed the output before calling the
closed() event, the ‘data’ argument will be an invalid pointer.
Since removing the output global _also_ destroys the surface, we can
handle this by looping all known output globals, and explicitly
destroy the surface if we find a match.
If we don’t find a match, that means the output has already been
destroyed, and we don’t have to do anything at all.
Diffstat (limited to 'PKGBUILD')
0 files changed, 0 insertions, 0 deletions