mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit 986c2866cc55b52afbd0e306096844237bf8bbad
parent 3272bb9256aef80e054fe6f620dbb76f702780a3
Author: depsterr <depsterr@protonmail.com>
Date:   Mon, 15 Jun 2020 23:57:42 +0000

first test

Diffstat:
D.config.h.swp | 0
Msowm.c | 14+++++++-------
Msowm.h | 4++--
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/.config.h.swp b/.config.h.swp Binary files differ. diff --git a/sowm.c b/sowm.c @@ -278,22 +278,22 @@ int main(void) { if (events[ev.type]) events[ev.type](&ev); } -void client_focus(client* c) { +void client_focus(const Arg arg) { if (list) { - list->prev->next = c; - c->prev = list->prev; - list->prev = c; - c->next = list; + list->prev->next = cur; + cur->prev = list->prev; + list->prev = cur; + cur->next = list; } else { - list = c; + list = cur; list->prev = list->next = list; } ws_save(ws); } -void organize() { +void organize(const Arg arg) { if (!list) return; diff --git a/sowm.h b/sowm.h @@ -35,7 +35,7 @@ typedef struct client { void button_press(XEvent *e); void button_release(XEvent *e); -void client_focuse(client *c); +void client_focus(const Arg arg); void configure_request(XEvent *e); void input_grab(Window root); void key_press(XEvent *e); @@ -43,7 +43,7 @@ void map_request(XEvent *e); void notify_destroy(XEvent *e); void notify_enter(XEvent *e); void notify_motion(XEvent *e); -void organize(); +void organize(const Arg arg); void run(const Arg arg); void win_add(Window w); void win_center(const Arg arg);