1
0
mirror of https://github.com/dylanaraps/sowm.git synced 2025-07-28 18:51:56 -07:00

sowm: Enable missing prototypes warning and define win_prev.

This commit is contained in:
Dylan Araps
2019-12-18 11:41:21 +00:00
parent 8ee3294adf
commit 09a514cd5e
3 changed files with 5 additions and 3 deletions

@@ -1,4 +1,4 @@
CFLAGS+= -std=c99 -Wall -Wextra -pedantic
CFLAGS+= -std=c99 -Wall -Wextra -Wmissing-prototypes -pedantic
LDADD+= -lX11
LDFLAGS=
PREFIX?= /usr

@@ -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}},

2
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);
}