From a0884da5324ceb1de30d82f851d1ad210b1a9c75 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sat, 3 Aug 2024 16:32:53 +0200 Subject: [PATCH] move --- surf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/surf.c b/surf.c index 277f8c4..013e718 100644 --- a/surf.c +++ b/surf.c @@ -402,7 +402,9 @@ void tab_bar_click(GtkWidget *w, GdkEvent *e, Client *c) { } void switch_tab(Client *c, const Arg *a) { - g_print("switch"); + g_print("switch %i", a->i); + c->selected_tab = MIN(MAX(c->selected_tab + a->i, 0), g_list_length(c->tabs) - 1); + update_tab_bar(c); } void move_tab(Client *c, const Arg *a) {