diff options
author | portix <none@none> | 2012-12-29 13:03:52 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-29 13:03:52 +0100 |
commit | 6c1d083ff8de9d79c79f1f16e8c2cf951832cda0 (patch) | |
tree | 2dbec3f6f0ecefada4de29af56d74a3014de63a3 /src/commands.c | |
parent | 60a66c73df1b8df2451587b043535347f72a0123 (diff) | |
download | dwb-6c1d083ff8de9d79c79f1f16e8c2cf951832cda0.zip |
Set event name when focusing a tab, adding eventname in tabFocus-signal
Diffstat (limited to 'src/commands.c')
-rw-r--r-- | src/commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.c b/src/commands.c index 02bb2e5a..1198e9dd 100644 --- a/src/commands.c +++ b/src/commands.c @@ -394,7 +394,7 @@ commands_focus(KeyMap *km, Arg *arg) { int pos = modulo(g_list_position(dwb.state.views, dwb.state.fview) + NUMMOD * arg->n, g_list_length(dwb.state.views)); GList *g = g_list_nth(dwb.state.views, pos); - dwb_focus_view(g); + dwb_focus_view(g, km->map->n.first); return STATUS_OK; } return STATUS_ERROR; @@ -418,7 +418,7 @@ commands_focus_nth_view(KeyMap *km, Arg *arg) if (l == NULL) return STATUS_ERROR; - dwb_focus_view(l); + dwb_focus_view(l, km->map->n.first); return STATUS_OK; }/*}}}*/ @@ -1006,7 +1006,7 @@ commands_toggle_tab(KeyMap *km, Arg *arg) GList *last = g_list_nth(dwb.state.views, dwb.state.last_tab); if (last) { - dwb_focus_view(last); + dwb_focus_view(last, km->map->n.first); return STATUS_OK; } return STATUS_ERROR; |