mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-26 20:48:41 +00:00
docs: update
This commit is contained in:
1 file changed
+28
@@ -232,6 +232,13 @@ void button_release() {
|
|||||||
mouse.subwindow = None;
|
mouse.subwindow = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
This function is called whenever a window is mapped to the
|
||||||
|
screen or moved to another desktop.
|
||||||
|
|
||||||
|
Memory is allocated for the new window and the current
|
||||||
|
desktop's window list is updated.
|
||||||
|
*/
|
||||||
void win_add(Window w) {
|
void win_add(Window w) {
|
||||||
client *c, *t;
|
client *c, *t;
|
||||||
|
|
||||||
@@ -256,6 +263,13 @@ void win_add(Window w) {
|
|||||||
ws_save(ws);
|
ws_save(ws);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
This function is called whenever a window is destoyed
|
||||||
|
or moved to another desktop.
|
||||||
|
|
||||||
|
Memory is freed and the current desktop's window list
|
||||||
|
is updated.
|
||||||
|
*/
|
||||||
void win_del(Window w) {
|
void win_del(Window w) {
|
||||||
client *c;
|
client *c;
|
||||||
|
|
||||||
@@ -285,6 +299,20 @@ void win_del(Window w) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
This function is called from a key binding to
|
||||||
|
close the currently focused window.
|
||||||
|
|
||||||
|
This differs from other window managers as we skip
|
||||||
|
the questions and go straight to the killing of
|
||||||
|
the window.
|
||||||
|
|
||||||
|
When I want to close a window I'm not asking, I
|
||||||
|
want the window closed and so it should immediately
|
||||||
|
close.
|
||||||
|
|
||||||
|
"Shoot first and don't ask questions later?.."
|
||||||
|
*/
|
||||||
void win_kill() {
|
void win_kill() {
|
||||||
if (win_current() != root) XKillClient(d, cur);
|
if (win_current() != root) XKillClient(d, cur);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user