commit 2067e566a984890860ebe3693b39075809d2cb74
parent cbe57ed38c4fddd8b1205225aca0ffb52982a004
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 11 Jan 2019 12:11:36 +0100
moveresize: fix code indentation and list items (new line)
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dwm.suckless.org/patches/moveresize/index.md b/dwm.suckless.org/patches/moveresize/index.md
@@ -10,30 +10,30 @@ Usage
-----
1. Put the following `moveresize()` function somewhere in your `dwm.c`,
**after** the line which includes the config.h file:
-
+
static void
moveresize(const Arg *arg)
{
XEvent ev;
Monitor *m = selmon;
-
+
if(!(m->sel && arg && arg->v && m->sel->isfloating))
return;
-
+
resize(m->sel, m->sel->x + ((int *)arg->v)[0],
m->sel->y + ((int *)arg->v)[1],
m->sel->w + ((int *)arg->v)[2],
m->sel->h + ((int *)arg->v)[3],
True);
-
+
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
-
+
2. Add a moveresize() function definition in dwm.c below the line:
static void movemouse(const Arg *arg);
static void moveresize(const Arg *arg);
-
+
3. Insert the bindings into the keys list. Here is an example which uses the
arrow keys to move (mod+arrow) or resize (mod+shift+arrow) the selected
client: