From 455361d11232a3e48d0d82d135f13a0317725d95 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Wed, 7 Nov 2012 17:32:51 +1000 Subject: [PATCH] remove snapshot stuff. not useful. --- action.c | 34 ---------------------------------- config.h | 4 ---- xoat.c | 4 +--- 3 files changed, 1 insertion(+), 41 deletions(-) diff --git a/action.c b/action.c index a5130e4..d30b013 100644 --- a/action.c +++ b/action.c @@ -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); - } -} - diff --git a/config.h b/config.h index 44f20d9..615b306 100644 --- a/config.h +++ b/config.h @@ -133,10 +133,6 @@ binding keys[] = { // Launcher { .mod = Mod4Mask, .key = XK_x, .act = action_command, .data = "dmenu_run" }, - // Snapshot state - { .mod = Mod4Mask, .key = XK_s, .act = action_snapshot }, - { .mod = Mod4Mask, .key = XK_r, .act = action_rollback }, - // Find or start apps by WM_CLASS (lower case match). // Only works for apps that use some form of their binary name as their class... { .mod = AnyModifier, .key = XK_F1, .act = action_find_or_start, .data = "xterm" }, diff --git a/xoat.c b/xoat.c index b2377c3..25afc4b 100644 --- a/xoat.c +++ b/xoat.c @@ -111,8 +111,6 @@ void action_move_monitor(void*, int, client*); void action_focus_monitor(void*, int, client*); void action_fullscreen(void*, int, client*); void action_above(void*, int, client*); -void action_snapshot(void*, int, client*); -void action_rollback(void*, int, client*); #include "config.h" @@ -147,7 +145,7 @@ monitor monitors[MONITORS]; int nmonitors = 1; short current_spot, current_mon; Window root, ewmh, current = None; -stack windows, snapshot; +stack windows; static int (*xerror)(Display *, XErrorEvent *); void catch_exit(int sig)