[wiki] [sites] moveresize: fix code indentation and list items (new line) || Hiltjo Posthuma
commit 2067e566a984890860ebe3693b39075809d2cb74
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Jan 11 12:11:36 2019 +0100
moveresize: fix code indentation and list items (new line)
diff --git a/dwm.suckless.org/patches/moveresize/index.md b/dwm.suckless.org/patches/moveresize/index.md
index d61f1626..f9be32fd 100644
--- a/dwm.suckless.org/patches/moveresize/index.md
+++ b/dwm.suckless.org/patches/moveresize/index.md
_AT_@ -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:
Received on Fri Jan 11 2019 - 12:12:02 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 11 2019 - 12:12:29 CET