Skip to content

Commit 42af708

Browse files
committed
Remove swapfocus
1 parent 093df80 commit 42af708

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

config.def.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ static Key keys[] = {
178178
{ MODKEY, XK_period, focusmon, {.i = +1 } },
179179
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
180180
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
181-
{ MODKEY|ShiftMask, XK_s, swapfocus, {0} },
182181
{ MODKEY|ControlMask, XK_f, togglecanfocusfloating, {0} },
183182
TAGKEYS( XK_1, 0)
184183
TAGKEYS( XK_2, 1)

dwm.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ static void shiftviewclients(const Arg *arg);
256256
static void showhide(Client *c);
257257
static void sigchld(int unused);
258258
static void spawn(const Arg *arg);
259-
static void swapfocus();
260259
static void tag(const Arg *arg);
261260
static void tagmon(const Arg *arg);
262261
static void togglebar(const Arg *arg);
@@ -2689,17 +2688,6 @@ spawn(const Arg *arg)
26892688
}
26902689
}
26912690

2692-
void
2693-
swapfocus()
2694-
{
2695-
Client *c;
2696-
for(c = selmon->clients; c && c != prevclient; c = c->next) ;
2697-
if(c == prevclient) {
2698-
focus(prevclient);
2699-
restack(prevclient->mon);
2700-
}
2701-
}
2702-
27032691
void
27042692
tag(const Arg *arg)
27052693
{

0 commit comments

Comments
 (0)