Termination of running apps when i3 quits
Is a signal send to each running application when i quit i3 (Mod+Shift+e)? Which signal is send?
Is a signal send to each running application when i quit i3 (Mod+Shift+e)? Which signal is send?
When i3 quits, it just calls exit(0);
which will cause X11 to terminate the session (since i3 was the first client). AFAIK, X11 does not send a signal to the applications when the session terminates. Instead, the X11 connection is closed and applications have to react accordingly.
@mmi: No, the window manager can’t do that. There is no guaranteed mapping between an X11 window and a UNIX process (there only is the optional `NET_WM_PID` atom). What one could do is follow the `WM_DELETE` protocol, I think the big desktop environments do it that way. OTOH, that’s a lot of code.
Asked: 2012-09-01 12:37:32 +0000
Seen: 1,350 times
Last updated: Sep 01 '12