From 7c6f693c8ac6dda45b213737d9640bc861e77ca7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 17 Aug 2011 12:28:45 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20consider=20the=20work?= =?UTF-8?q?space=20next/prev=20command=20when=20looking=20for=20named=20wo?= =?UTF-8?q?rkspaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #469 --- src/randr.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);