mdebase/milkwm/main.c
2026-04-12 08:03:59 +09:00

22 lines
284 B
C

#include "milkwm.h"
void rehash(int sig) {
pthread_mutex_lock(&xmutex);
wm_rehash = 1;
pthread_mutex_unlock(&xmutex);
}
int main() {
int st;
MwLibraryInit();
wm_config_init();
wm_config_read();
if((st = init_x()) != 0) return st;
signal(SIGHUP, rehash);
loop_wm();
}