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:
2
Makefile
2
Makefile
@@ -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
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user