full suspend

This commit is contained in:
WanderingPenwing 2024-08-04 13:43:26 +02:00
parent d0cc8ec3a8
commit 698660bc83

9
surf.c
View file

@ -483,7 +483,10 @@ void close_tab(Client *c, const Arg *a) {
}
remove_tab(c, g_list_nth_data(c->tabs, c->selected_tab));
c->selected_tab -= 1;
Tab *selected_tab = g_list_nth_data(c->tabs, c->selected_tab);
selected_tab->suspended = true;
update_tab_bar(c);
reload_tab(c);
}
void new_tab(Client *c, const Arg *a) {
@ -1597,10 +1600,14 @@ processx(GdkXEvent *e, GdkEvent *event, gpointer d)
if (ev->state == PropertyNewValue) {
if (ev->atom == atoms[AtomFind]) {
find(c, NULL);
return GDK_FILTER_REMOVE;
} else if (ev->atom == atoms[AtomGo]) {
a.v = getatom(c, AtomGo);
Tab *selected_tab = g_list_nth_data(c->tabs, c->selected_tab);
selected_tab->suspended = false;
loaduri(c, &a);
return GDK_FILTER_REMOVE;