docs: update

This commit is contained in:
Dylan Araps 2019-10-13 17:45:44 +03:00
parent 4475ac5653
commit 7b876932a7

18
sowm.c
View File

@ -91,6 +91,7 @@ void notify_destroy(XEvent *e) {
}
void notify_enter(XEvent *e) {
if (e->xcrossing.window != root)
XSetInputFocus(dis, e->xcrossing.window, RevertToParent, CurrentTime);
}
@ -207,7 +208,12 @@ void win_del(Window w) {
void win_kill() {
Window cur = win_current();
if (cur != root) XKillClient(dis, cur);
if (cur != root) {
XKillClient(dis, cur);
win_del(cur);
if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime);
}
}
void win_center(Window w) {
@ -248,20 +254,20 @@ void win_to_ws(const Arg arg) {
win_del(cur);
XUnmapWindow(dis, cur);
ws_save(tmp);
if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime);
}
void win_next() {
Window cur = win_current();
client *c;
if (list) {
if (cur == root) cur = list->win;
if (cur == root) return;
if (list) {
for WIN if (c->win == cur) break;
c = c->next;
if (!c) c = list;
c = c->next ? c->next : list;
XSetInputFocus(dis, c->win, RevertToParent, CurrentTime);
XRaiseWindow(dis, c->win);