mfwm

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

commit 09a514cd5edf98c9fc6ac0e1a46d2f3b32b9093a
parent 8ee3294adf653dbe0332ea825bcd344d3511d84c
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 18 Dec 2019 11:41:21 +0000

sowm: Enable missing prototypes warning and define win_prev.

Diffstat:
MMakefile | 2+-
Mconfig.def.h | 4+++-
Msowm.c | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -CFLAGS+= -std=c99 -Wall -Wextra -pedantic +CFLAGS+= -std=c99 -Wall -Wextra -Wmissing-prototypes -pedantic LDADD+= -lX11 LDFLAGS= PREFIX?= /usr diff --git a/config.def.h b/config.def.h @@ -17,7 +17,9 @@ static struct key keys[] = { {MOD, XK_q, win_kill, {0}}, {MOD, XK_c, win_center, {0}}, {MOD, XK_f, win_fs, {0}}, - {Mod1Mask, XK_Tab, win_next, {0}}, + + {Mod1Mask, XK_Tab, win_next, {0}}, + {Mod1Mask|ShiftMask, XK_Tab, win_prev, {0}}, {MOD, XK_d, run, {.com = menu}}, {MOD, XK_w, run, {.com = colors}}, diff --git a/sowm.c b/sowm.c @@ -212,7 +212,7 @@ void win_to_ws(const Arg arg) { void win_prev() { if (!cur) return; - + XRaiseWindow(d, cur->prev->w); win_focus(cur->prev); }