1
0
mirror of https://github.com/dylanaraps/sowm.git synced 2025-07-26 17:51:55 -07:00

add win_prev()

This commit is contained in:
Kiëd Llaentenn
2019-12-15 18:53:52 -05:00
committed by GitHub
parent aaabcb8049
commit dcaf873fec

8
sowm.c

@@ -42,6 +42,7 @@ static void win_center();
static void win_del(Window w); static void win_del(Window w);
static void win_fs(); static void win_fs();
static void win_kill(); static void win_kill();
static void win_prev();
static void win_next(); static void win_next();
static void win_to_ws(const Arg arg); static void win_to_ws(const Arg arg);
static void ws_go(const Arg arg); static void ws_go(const Arg arg);
@@ -204,6 +205,13 @@ void win_to_ws(const Arg arg) {
if (list) win_focus(list); if (list) win_focus(list);
} }
void win_prev() {
if (!cur) return;
XRaiseWindow(d, cur->prev->w);
win_focus(cur->prev);
}
void win_next() { void win_next() {
if (!cur) return; if (!cur) return;