diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2013-08-11 19:26:52 +0200 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2013-08-11 13:44:48 -0400 |
| commit | 7c4fae0312dc7af7578e0fe345cec0a92ea87c9f (patch) | |
| tree | 3b191e9137cf3ab7582a8fceafd5d6e72f5355a4 /openbox | |
| parent | eae7a57088eeb0e4b6c3caa30e08972fd4f0c934 (diff) | |
Change "plain" to "exact" for If's <title>
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/actions/if.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openbox/actions/if.c b/openbox/actions/if.c index fd1280d2..3f4c4d64 100644 --- a/openbox/actions/if.c +++ b/openbox/actions/if.c @@ -32,7 +32,7 @@ typedef struct { guint client_monitor; GPatternSpec *matchtitle; GRegex *regextitle; - gchar *plaintitle; + gchar *exacttitle; GSList *thenacts; GSList *elseacts; } Options; @@ -102,8 +102,8 @@ static gpointer setup_func(xmlNodePtr node) o->matchtitle = g_pattern_spec_new(s); } else if (type && !g_ascii_strcasecmp(type, "regex")) { o->regextitle = g_regex_new(s, 0, 0, NULL); - } else if (type && !g_ascii_strcasecmp(type, "plain")) { - o->plaintitle = g_strdup(s); + } else if (type && !g_ascii_strcasecmp(type, "exact")) { + o->exacttitle = g_strdup(s); } g_free(s); } @@ -152,8 +152,8 @@ static void free_func(gpointer options) g_pattern_spec_free(o->matchtitle); if (o->regextitle) g_regex_unref(o->regextitle); - if (o->plaintitle) - g_free(o->plaintitle); + if (o->exacttitle) + g_free(o->exacttitle); g_slice_free(Options, o); } @@ -195,8 +195,8 @@ static gboolean run_func(ObActionsData *data, gpointer options) (g_pattern_match_string(o->matchtitle, c->original_title))) && (!o->regextitle || (g_regex_match(o->regextitle, c->original_title, 0, NULL))) && - (!o->plaintitle || - (!strcmp(o->plaintitle, c->original_title))) && + (!o->exacttitle || + (!strcmp(o->exacttitle, c->original_title))) && (!o->client_monitor || (o->client_monitor == client_monitor(c) + 1))) { |
