summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2021-08-15 18:58:55 -0500
committerGitHub <noreply@github.com>2021-08-15 18:58:55 -0500
commit1b8bc13ae08363008558b99973c2b33cbb207433 (patch)
treed28622cf1e0981f5c79f933909172747b0211970 /dwm.c
parenteeee0425bfe73c3056018af8dacd04da780da6f3 (diff)
commit
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/dwm.c b/dwm.c
index c1e7025..f5bdff0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -171,13 +171,11 @@ static void expose(XEvent *e);
static void focus(Client *c);
static void focusin(XEvent *e);
static void focusmon(const Arg *arg);
-static void focusstack(const Arg *arg);
static int getrootptr(int *x, int *y);
static long getstate(Window w);
static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
static void grabbuttons(Client *c, int focused);
static void grabkeys(void);
-static void incnmaster(const Arg *arg);
static void keypress(XEvent *e);
static void killclient(const Arg *arg);
static void manage(Window w, XWindowAttributes *wa);
@@ -208,7 +206,6 @@ static void setfullscreen(Client *c, int fullscreen);
static void fullscreen(const Arg *arg);
static void setgaps(const Arg *arg);
static void setlayout(const Arg *arg);
-static void setmfact(const Arg *arg);
static void setup(void);
static void seturgent(Client *c, int urg);
static void showhide(Client *c);
@@ -853,32 +850,6 @@ focusmon(const Arg *arg)
focus(NULL);
}
-void
-focusstack(const Arg *arg)
-{
- Client *c = NULL, *i;
-
- if (!selmon->sel)
- return;
- if (arg->i > 0) {
- for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
- if (!c)
- for (c = selmon->clients; c && !ISVISIBLE(c); c = c->next);
- } else {
- for (i = selmon->clients; i != selmon->sel; i = i->next)
- if (ISVISIBLE(i))
- c = i;
- if (!c)
- for (; i; i = i->next)
- if (ISVISIBLE(i))
- c = i;
- }
- if (c) {
- focus(c);
- restack(selmon);
- }
-}
-
Atom
getatomprop(Client *c, Atom prop)
{
@@ -987,13 +958,6 @@ grabkeys(void)
}
}
-void
-incnmaster(const Arg *arg)
-{
- selmon->nmaster = MAX(selmon->nmaster + arg->i, 0);
- arrange(selmon);
-}
-
#ifdef XINERAMA
static int
isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info)
@@ -1626,21 +1590,6 @@ setlayout(const Arg *arg)
drawbar(selmon);
}
-/* arg > 1.0 will set mfact absolutely */
-void
-setmfact(const Arg *arg)
-{
- float f;
-
- if (!arg || !selmon->lt[selmon->sellt]->arrange)
- return;
- f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
- if (f < 0.1 || f > 0.9)
- return;
- selmon->mfact = f;
- arrange(selmon);
-}
-
void
setup(void)
{