X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fdesktop.c;h=d3a0d0c30edeaba16c5387053400328d1b8ca906;hb=ee8d27a6e8a8ca7fda22c4b1624fc18c92bfff97;hp=0e9ad7399d192fd0b8dce391e6a4be7dac6145e5;hpb=2464e593300f677ed5dc953a36f25b84edfd07ae;p=chaz%2Fopenbox diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 0e9ad739..d3a0d0c3 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -55,8 +55,7 @@ static gpointer setup_go_func(ObParseInst *i, xmlDocPtr doc, if ((n = parse_find_node("to", node))) { gchar *s = parse_string(doc, n); - if (!g_ascii_strcasecmp(s, "last") || - !g_ascii_strcasecmp(s, "previous")) + if (!g_ascii_strcasecmp(s, "last")) o->type = LAST; else if (!g_ascii_strcasecmp(s, "next")) { o->type = RELATIVE; @@ -123,7 +122,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) Options *o = options; guint d; - + switch (o->type) { case LAST: