remove snapshot stuff. not useful.

This commit is contained in:
seanpringle
2012-11-07 17:32:51 +10:00
parent 535ea4ee63
commit 455361d112
3 changed files with 1 additions and 41 deletions

View File

@@ -120,37 +120,3 @@ void action_above(void *data, int num, client *cli)
client_update_border(cli);
client_raise_family(cli);
}
void action_snapshot(void *data, int num, client *cli)
{
int i; client *c; STACK_FREE(&snapshot);
for_windows(i, c) if (c->manage && c->class)
snapshot.clients[snapshot.depth++] = window_build_client(c->window);
}
void action_rollback(void *data, int num, client *cli)
{
int i; client *c = NULL, *s, *a = NULL;
for (i = snapshot.depth-1; i > -1; i--)
{
if ((s = snapshot.clients[i]) && (c = window_build_client(s->window))
&& c->class && !strcmp(s->class, c->class) && c->visible && c->manage)
{
client_place_spot(c, s->spot, s->monitor, 1);
client_raise_family(c);
if (s->spot == current_spot && s->monitor == current_mon)
{
client_free(a);
a = c; c = NULL;
}
}
client_free(c);
c = NULL;
}
if (a)
{
client_set_focus(a);
client_free(a);
}
}