From: Michael Stapelberg Date: Wed, 17 Aug 2011 10:28:45 +0000 (+0200) Subject: Bugfix: Don’t consider the workspace next/prev command when looking for named workspaces X-Git-Tag: 4.0.2~39^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c6f693c8ac6dda45b213737d9640bc861e77ca7;p=i3%2Fi3 Bugfix: Don’t consider the workspace next/prev command when looking for named workspaces Fixes #469 --- diff --git a/src/randr.c b/src/randr.c index aa2ea351..6b6cd67d 100644 --- a/src/randr.c +++ b/src/randr.c @@ -425,6 +425,12 @@ void init_ws_for_output(Output *output, Con *content) { continue; DLOG("relevant command = %s\n", bind->command); char *target = bind->command + strlen("workspace "); + /* We check if this is the workspace next/prev command. Beware: The + * workspace names "next" and "prev" are OK, so we check before + * stripping the double quotes */ + if (strncasecmp(target, "next", strlen("next")) == 0 || + strncasecmp(target, "prev", strlen("prev")) == 0) + continue; if (*target == '"') target++; FREE(ws->name);