X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=5c1e017828138b67a2bb6ac424447fcd3034143a;hb=739c958ac58154f8b1896113701e1c7f580d4cde;hp=b10659297e48d616b474728154bfe73813b9ec5a;hpb=4ed3fb89150d05e6fa134798315269c62de1bed9;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index b1065929..5c1e0178 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) plugin_startup(); /* XXX load all plugins!! */ - plugin_open("foo"); + plugin_open("focus"); /* get all the existing windows */ client_manage_all(); @@ -174,7 +174,10 @@ int main(int argc, char **argv) void signal_handler(const ObEvent *e, void *data) { - switch (e->data.signal) { + int s; + + s = e->data.s.signal; + switch (s) { case SIGUSR1: g_message("Caught SIGUSR1 signal. Restarting."); ob_shutdown = ob_restart = TRUE; @@ -188,12 +191,12 @@ void signal_handler(const ObEvent *e, void *data) case SIGINT: case SIGTERM: case SIGPIPE: - g_message("Caught signal %d. Exiting.", e->data.signal); + g_message("Caught signal %d. Exiting.", s); ob_shutdown = TRUE; break; case SIGFPE: case SIGSEGV: - g_error("Caught signal %d. Aborting and dumping core.",e->data.signal); + g_error("Caught signal %d. Aborting and dumping core.", s); } }