projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec328fc
)
fix a bug from when $window changed to $wid in the execute action
author
Dana Jansens
<danakj@orodu.net>
Sun, 9 Mar 2008 19:09:48 +0000
(15:09 -0400)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 9 Mar 2008 19:25:57 +0000
(15:25 -0400)
openbox/actions/execute.c
patch
|
blob
|
history
diff --git
a/openbox/actions/execute.c
b/openbox/actions/execute.c
index
05ab2ef
..
121c094
100644
(file)
--- 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;
if (data->client) {
gchar *c, *before, *expand;
- /* replace occurances of $pid and $wi
ndow
*/
+ /* replace occurances of $pid and $wi
d
*/
expand = NULL;
before = cmd;
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') &&
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 $wi
ndow
*/
+ /* found $wi
d
*/
gchar *tmp;
*c = '\0';
gchar *tmp;
*c = '\0';
@@
-185,7
+185,7
@@
static gboolean run_func(ObActionsData *data, gpointer options)
data->client->window);
g_free(tmp);
data->client->window);
g_free(tmp);
- before = c +
7; /* 4 = strlen("$window
") */
+ before = c +
4; /* 4 = strlen("$wid
") */
}
}
}
}