aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:03:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-30 19:03:11 +0000
commit9d5926ce12935e51de8c22a93f9f2b1cbfc6c6d8 (patch)
tree1009faf2daa812399f58eb211dd65803f591b5d2 /input.c
parentwayland: 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 'input.c')
0 files changed, 0 insertions, 0 deletions