diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-03-09 15:09:48 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-03-09 15:25:57 -0400 |
| commit | e4f0be1ab0234b45ef0509409250db2e5231b635 (patch) | |
| tree | ff5c60699defaebafc490fa33b25dd5a4354c4ec /openbox | |
| parent | ec328fc04fe6e8d8c3d1ee386d4964963eb2ee17 (diff) | |
fix a bug from when $window changed to $wid in the execute action
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/actions/execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index 05ab2ef3..121c0943 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -144,7 +144,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) if (data->client) { gchar *c, *before, *expand; - /* replace occurances of $pid and $window */ + /* replace occurances of $pid and $wid */ expand = NULL; before = cmd; @@ -172,9 +172,9 @@ static gboolean run_func(ObActionsData *data, gpointer options) if ((c[1] == 'w' || c[1] == 'W') && (c[2] == 'i' || c[2] == 'I') && (c[3] == 'd' || c[3] == 'D') && - !g_ascii_isalnum(c[7])) + !g_ascii_isalnum(c[4])) { - /* found $window */ + /* found $wid */ gchar *tmp; *c = '\0'; @@ -185,7 +185,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) data->client->window); g_free(tmp); - before = c + 7; /* 4 = strlen("$window") */ + before = c + 4; /* 4 = strlen("$wid") */ } } |
