summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index da178623..945b4d2f 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -47,7 +47,11 @@ Client::Client(std::unique_ptr<UserInterface>&& ui,
m_ui->set_ui_options(m_window->options()["ui_options"].get<UserInterface::Options>());
m_ui->set_on_key([this](Key key) {
if (key == ctrl('c'))
+ {
+ auto prev_handler = set_signal_handler(SIGINT, SIG_IGN);
killpg(getpgrp(), SIGINT);
+ set_signal_handler(SIGINT, prev_handler);
+ }
else if (key.modifiers & Key::Modifiers::Resize)
{
m_window->set_dimensions(key.coord());