~kris/suckless

st

924d10507bcf7cfbdba62b22034336a629c1b800 — rdbo 2 years ago 0aa25fa
fixed window not closing on wayland
1 files changed, 6 insertions(+), 0 deletions(-)

M st.c
M st.c => st.c +6 -0
@@ 965,8 965,14 @@ ttyresize(int tw, int th)
void
ttyhangup()
{
	/* disable signal handler (fixes window not closing) */
	signal(SIGCHLD, SIG_IGN);

	/* Send SIGHUP to shell */
	kill(pid, SIGHUP);

	/* forcefully die */
	die("tty was hung up\n");
}

int