diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:03:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-30 19:03:11 +0000 |
| commit | 9d5926ce12935e51de8c22a93f9f2b1cbfc6c6d8 (patch) | |
| tree | 1009faf2daa812399f58eb211dd65803f591b5d2 /render.c | |
| parent | wayland: track multiple terminals (diff) | |
term: add term_shutdown()
This function unmaps the terminal window, removes itself from the
wayland list of terminals and then finally destroys itself.
We ensure we don't get any callbacks/events referring to a free:d
terminal struct, we close all terminal related FDs and unmap the
wayland window.
Then, to be really really sure there aren't any (by the FDM) queued up
events, we delay the self-destruction to the next FDM poll iteration,
by opening an event FD and adding it to the FDM.
The callback for the event FD removes the FD from the FDM again, and
closes it. And then proceeds to destroy the terminal.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
