remove snapshot stuff. not useful.
This commit is contained in:
34
action.c
34
action.c
@@ -120,37 +120,3 @@ void action_above(void *data, int num, client *cli)
|
|||||||
client_update_border(cli);
|
client_update_border(cli);
|
||||||
client_raise_family(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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
4
config.h
4
config.h
@@ -133,10 +133,6 @@ binding keys[] = {
|
|||||||
// Launcher
|
// Launcher
|
||||||
{ .mod = Mod4Mask, .key = XK_x, .act = action_command, .data = "dmenu_run" },
|
{ .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).
|
// 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...
|
// 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" },
|
{ .mod = AnyModifier, .key = XK_F1, .act = action_find_or_start, .data = "xterm" },
|
||||||
|
|||||||
4
xoat.c
4
xoat.c
@@ -111,8 +111,6 @@ void action_move_monitor(void*, int, client*);
|
|||||||
void action_focus_monitor(void*, int, client*);
|
void action_focus_monitor(void*, int, client*);
|
||||||
void action_fullscreen(void*, int, client*);
|
void action_fullscreen(void*, int, client*);
|
||||||
void action_above(void*, int, client*);
|
void action_above(void*, int, client*);
|
||||||
void action_snapshot(void*, int, client*);
|
|
||||||
void action_rollback(void*, int, client*);
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
@@ -147,7 +145,7 @@ monitor monitors[MONITORS];
|
|||||||
int nmonitors = 1;
|
int nmonitors = 1;
|
||||||
short current_spot, current_mon;
|
short current_spot, current_mon;
|
||||||
Window root, ewmh, current = None;
|
Window root, ewmh, current = None;
|
||||||
stack windows, snapshot;
|
stack windows;
|
||||||
static int (*xerror)(Display *, XErrorEvent *);
|
static int (*xerror)(Display *, XErrorEvent *);
|
||||||
|
|
||||||
void catch_exit(int sig)
|
void catch_exit(int sig)
|
||||||
|
|||||||
Reference in New Issue
Block a user