compositor: minor cleanup

This commit is contained in:
vaxerski 2023-08-19 19:24:48 +02:00
parent 942ee943f5
commit ebc5fed9b2

View file

@ -12,11 +12,10 @@
int handleCritSignal(int signo, void* data) { int handleCritSignal(int signo, void* data) {
Debug::log(LOG, "Hyprland received signal %d", signo); 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(); g_pCompositor->cleanup();
}
return 0; // everything went fine return 0;
} }
void handleUnrecoverableSignal(int sig) { void handleUnrecoverableSignal(int sig) {