mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
docs: update
This commit is contained in:
parent
4475ac5653
commit
7b876932a7
20
sowm.c
20
sowm.c
@ -91,7 +91,8 @@ void notify_destroy(XEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void notify_enter(XEvent *e) {
|
void notify_enter(XEvent *e) {
|
||||||
XSetInputFocus(dis, e->xcrossing.window, RevertToParent, CurrentTime);
|
if (e->xcrossing.window != root)
|
||||||
|
XSetInputFocus(dis, e->xcrossing.window, RevertToParent, CurrentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void notify_motion(XEvent *e) {
|
void notify_motion(XEvent *e) {
|
||||||
@ -207,7 +208,12 @@ void win_del(Window w) {
|
|||||||
void win_kill() {
|
void win_kill() {
|
||||||
Window cur = win_current();
|
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) {
|
void win_center(Window w) {
|
||||||
@ -248,20 +254,20 @@ void win_to_ws(const Arg arg) {
|
|||||||
win_del(cur);
|
win_del(cur);
|
||||||
XUnmapWindow(dis, cur);
|
XUnmapWindow(dis, cur);
|
||||||
ws_save(tmp);
|
ws_save(tmp);
|
||||||
|
|
||||||
|
if (list) XSetInputFocus(dis, list->win, RevertToParent, CurrentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void win_next() {
|
void win_next() {
|
||||||
Window cur = win_current();
|
Window cur = win_current();
|
||||||
client *c;
|
client *c;
|
||||||
|
|
||||||
if (list) {
|
if (cur == root) return;
|
||||||
if (cur == root) cur = list->win;
|
|
||||||
|
|
||||||
|
if (list) {
|
||||||
for WIN if (c->win == cur) break;
|
for WIN if (c->win == cur) break;
|
||||||
|
|
||||||
c = c->next;
|
c = c->next ? c->next : list;
|
||||||
|
|
||||||
if (!c) c = list;
|
|
||||||
|
|
||||||
XSetInputFocus(dis, c->win, RevertToParent, CurrentTime);
|
XSetInputFocus(dis, c->win, RevertToParent, CurrentTime);
|
||||||
XRaiseWindow(dis, c->win);
|
XRaiseWindow(dis, c->win);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user