summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index f39ae640..05b4124d 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -12,11 +12,10 @@
int handleCritSignal(int signo, void* data) {
Debug::log(LOG, "Hyprland received signal %d", signo);
- if (signo == SIGTERM || signo == SIGINT || signo == SIGKILL) {
+ if (signo == SIGTERM || signo == SIGINT || signo == SIGKILL)
g_pCompositor->cleanup();
- }
- return 0; // everything went fine
+ return 0;
}
void handleUnrecoverableSignal(int sig) {