catwm: rm next/prev desktop

This commit is contained in:
Dylan Araps 2019-10-11 14:55:52 +03:00
parent a071d7c03e
commit 0323e115ce
2 changed files with 0 additions and 26 deletions

24
catwm.c
View File

@ -89,9 +89,7 @@ static void kill_client();
static void maprequest(XEvent *e);
static void move_down();
static void move_up();
static void next_desktop();
static void next_win();
static void prev_desktop();
static void prev_win();
static void quit();
static void remove_window(Window w);
@ -358,17 +356,6 @@ void move_up() {
update_current();
}
void next_desktop() {
int tmp = current_desktop;
if(tmp== 9)
tmp = 0;
else
tmp++;
Arg a = {.i = tmp};
change_desktop(a);
}
void next_win() {
client *c;
@ -383,17 +370,6 @@ void next_win() {
}
}
void prev_desktop() {
int tmp = current_desktop;
if(tmp == 0)
tmp = 9;
else
tmp--;
Arg a = {.i = tmp};
change_desktop(a);
}
void prev_win() {
client *c;

View File

@ -75,8 +75,6 @@ static struct key keys[] = {
{ 0, XF86XK_AudioRaiseVolume, spawn, {.com = volup}},
{ MOD, XK_p, spawn, {.com = dmenucmd}},
{ MOD|ShiftMask, XK_Return, spawn, {.com = urxvtcmd}},
{ MOD, XK_Right, next_desktop, {NULL}},
{ MOD, XK_Left, prev_desktop, {NULL}},
DESKTOPCHANGE( XK_0, 0)
DESKTOPCHANGE( XK_1, 1)
DESKTOPCHANGE( XK_2, 2)