From: Michael Stapelberg Date: Sun, 23 Oct 2011 18:41:40 +0000 (+0100) Subject: Introduce --get_socketpath and --force_xinerama as synonyms for --get-socketpath... X-Git-Tag: 4.1~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a512b99a5187be14d399a565baba372c313f74db;p=i3%2Fi3 Introduce --get_socketpath and --force_xinerama as synonyms for --get-socketpath and --force-xinerama --- diff --git a/src/main.c b/src/main.c index a9d71416..958ea653 100644 --- a/src/main.c +++ b/src/main.c @@ -215,8 +215,10 @@ int main(int argc, char *argv[]) { {"layout", required_argument, 0, 'L'}, {"restart", required_argument, 0, 0}, {"force-xinerama", no_argument, 0, 0}, + {"force_xinerama", no_argument, 0, 0}, {"disable-signalhandler", no_argument, 0, 0}, {"get-socketpath", no_argument, 0, 0}, + {"get_socketpath", no_argument, 0, 0}, {0, 0, 0, 0} }; int option_index = 0, opt; @@ -266,7 +268,8 @@ int main(int argc, char *argv[]) { /* DEPRECATED, ignored for the next 3 versions (3.e, 3.f, 3.g) */ break; case 0: - if (strcmp(long_options[option_index].name, "force-xinerama") == 0) { + if (strcmp(long_options[option_index].name, "force-xinerama") == 0 || + strcmp(long_options[option_index].name, "force_xinerama") == 0) { force_xinerama = true; ELOG("Using Xinerama instead of RandR. This option should be " "avoided at all cost because it does not refresh the list " @@ -277,7 +280,8 @@ int main(int argc, char *argv[]) { } else if (strcmp(long_options[option_index].name, "disable-signalhandler") == 0) { disable_signalhandler = true; break; - } else if (strcmp(long_options[option_index].name, "get-socketpath") == 0) { + } else if (strcmp(long_options[option_index].name, "get-socketpath") == 0 || + strcmp(long_options[option_index].name, "get_socketpath") == 0) { char *socket_path = socket_path_from_x11(); if (socket_path) { printf("%s\n", socket_path);