This commit is contained in:
WanderingPenwing 2024-08-03 16:32:53 +02:00
parent 298b753ccd
commit a0884da532

4
surf.c
View file

@ -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) {