X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=04e07ab628fc1e8d73e70e2d30fbcfced47234bc;hb=b7b4abe0d84b7a820a2ada7a08a0d3d15a86acaf;hp=e7fd79318ec9a0674c9407805f3bc0573b41bd61;hpb=29e3748605eaf86635aed48273bddfdcdcae05c4;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index e7fd7931..04e07ab6 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -19,9 +19,6 @@ #ifdef HAVE_FCNTL_H # include #endif -#ifdef HAVE_SYS_SELECT_H -# include -#endif #ifdef HAVE_SIGNAL_H # include #endif @@ -78,7 +75,7 @@ int main(int argc, char **argv) sigemptyset(&sigset); action.sa_handler = dispatch_signal; action.sa_mask = sigset; - action.sa_flags = SA_NOCLDSTOP | SA_NODEFER; + action.sa_flags = SA_NOCLDSTOP; sigaction(SIGUSR1, &action, (struct sigaction *) NULL); sigaction(SIGPIPE, &action, (struct sigaction *) NULL); sigaction(SIGSEGV, &action, (struct sigaction *) NULL); @@ -151,6 +148,7 @@ int main(int argc, char **argv) plugin_open("keyboard"); plugin_open("mouse"); plugin_open("placement"); + plugin_open("resistance"); /* get all the existing windows */ client_manage_all(); @@ -179,7 +177,6 @@ int main(int argc, char **argv) XCloseDisplay(ob_display); if (ob_restart) { - ob_restart_path = ""; if (ob_restart_path != NULL) { int argcp; char **argvp; @@ -271,6 +268,10 @@ void parse_args(int argc, char **argv) g_printerr("-rc requires an argument\n"); else ob_rc_path = argv[++i]; + } else { + g_printerr("Invalid option: '%s'\n\n", argv[i]); + print_help(); + exit(1); } } }