bool delete_layout_path;
bool only_check_config = false;
bool force_xinerama = false;
+ bool disable_signalhandler = false;
xcb_intern_atom_cookie_t atom_cookies[NUM_ATOMS];
static struct option long_options[] = {
{"no-autostart", no_argument, 0, 'a'},
{"layout", required_argument, 0, 'L'},
{"restart", required_argument, 0, 0},
{"force-xinerama", no_argument, 0, 0},
+ {"disable-signalhandler", no_argument, 0, 0},
{0, 0, 0, 0}
};
int option_index = 0, opt;
only_check_config = true;
break;
case 'v':
- printf("i3 version " I3_VERSION " © 2009 Michael Stapelberg and contributors\n");
+ printf("i3 version " I3_VERSION " © 2009-2011 Michael Stapelberg and contributors\n");
exit(EXIT_SUCCESS);
case 'V':
set_verbosity(true);
"Please check if your driver really does not support RandR "
"and disable this option as soon as you can.\n");
break;
+ } else if (strcmp(long_options[option_index].name, "disable-signalhandler") == 0) {
+ disable_signalhandler = true;
+ break;
} else if (strcmp(long_options[option_index].name, "restart") == 0) {
FREE(layout_path);
layout_path = sstrdup(optarg);
manage_existing_windows(root);
- setup_signal_handler();
+ if (!disable_signalhandler)
+ setup_signal_handler();
/* Ignore SIGPIPE to survive errors when an IPC client disconnects
* while we are sending him a message */