From: Michael Stapelberg Date: Mon, 25 Jun 2012 19:43:41 +0000 (+0200) Subject: when using i3 -C, don’t send remaining arguments via IPC (Thanks Somelauw) X-Git-Tag: 4.3~200^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6146f39b8a253bc84bc5ce1feb2e3cabc50d71ba;p=i3%2Fi3 when using i3 -C, don’t send remaining arguments via IPC (Thanks Somelauw) --- diff --git a/src/main.c b/src/main.c index 39288295..e332f5b4 100644 --- a/src/main.c +++ b/src/main.c @@ -405,7 +405,7 @@ int main(int argc, char *argv[]) { /* If the user passes more arguments, we act like i3-msg would: Just send * the arguments as an IPC message to i3. This allows for nice semantic * commands such as 'i3 border none'. */ - if (optind < argc) { + if (!only_check_config && optind < argc) { /* We enable verbose mode so that the user knows what’s going on. * This should make it easier to find mistakes when the user passes * arguments by mistake. */