Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
sowm: Enable missing prototypes warning and define win_prev.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Dec 18, 2019
1 parent 8ee3294 commit 09a514c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS+= -std=c99 -Wall -Wextra -pedantic
CFLAGS+= -std=c99 -Wall -Wextra -Wmissing-prototypes -pedantic
LDADD+= -lX11
LDFLAGS=
PREFIX?= /usr
Expand Down
4 changes: 3 additions & 1 deletion config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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}},
Expand Down
2 changes: 1 addition & 1 deletion sowm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 09a514c

Please sign in to comment.