mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-14 19:03:40 +00:00
docs: update
This commit is contained in:
1 parent
45feb5495f
commit
a071d7c03e
2 files changed
+8
-8
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
CFLAGS+= -Wall
|
CFLAGS+= -Wall
|
||||||
LDADD+= -lX11
|
LDADD+= -lX11
|
||||||
LDFLAGS=
|
LDFLAGS=
|
||||||
PREFIX?= /usr
|
PREFIX?= /usr
|
||||||
BINDIR?= $(PREFIX)/bin
|
BINDIR?= $(PREFIX)/bin
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ void change_desktop(const Arg arg) {
|
|||||||
void client_to_desktop(const Arg arg) {
|
void client_to_desktop(const Arg arg) {
|
||||||
client *tmp = current;
|
client *tmp = current;
|
||||||
int tmp2 = current_desktop;
|
int tmp2 = current_desktop;
|
||||||
|
|
||||||
if(arg.i == current_desktop || current == NULL)
|
if(arg.i == current_desktop || current == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ void destroynotify(XEvent *e) {
|
|||||||
for(c=head;c;c=c->next)
|
for(c=head;c;c=c->next)
|
||||||
if(ev->window == c->win)
|
if(ev->window == c->win)
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
// End of the hack
|
// End of the hack
|
||||||
if(i == 0)
|
if(i == 0)
|
||||||
return;
|
return;
|
||||||
@@ -313,7 +313,7 @@ void kill_client() {
|
|||||||
send_kill_signal(current->win);
|
send_kill_signal(current->win);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void maprequest(XEvent *e) {
|
void maprequest(XEvent *e) {
|
||||||
XMapRequestEvent *ev = &e->xmaprequest;
|
XMapRequestEvent *ev = &e->xmaprequest;
|
||||||
|
|
||||||
@@ -412,7 +412,7 @@ void quit() {
|
|||||||
Window root_return, parent;
|
Window root_return, parent;
|
||||||
Window *children;
|
Window *children;
|
||||||
int i;
|
int i;
|
||||||
unsigned int nchildren;
|
unsigned int nchildren;
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -497,7 +497,7 @@ void select_desktop(int i) {
|
|||||||
current_desktop = i;
|
current_desktop = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_kill_signal(Window w) {
|
void send_kill_signal(Window w) {
|
||||||
XEvent ke;
|
XEvent ke;
|
||||||
ke.type = ClientMessage;
|
ke.type = ClientMessage;
|
||||||
ke.xclient.window = w;
|
ke.xclient.window = w;
|
||||||
@@ -553,7 +553,7 @@ void setup() {
|
|||||||
const Arg arg = {.i = 1};
|
const Arg arg = {.i = 1};
|
||||||
current_desktop = arg.i;
|
current_desktop = arg.i;
|
||||||
change_desktop(arg);
|
change_desktop(arg);
|
||||||
|
|
||||||
// To catch maprequest and destroynotify (if other wm running)
|
// To catch maprequest and destroynotify (if other wm running)
|
||||||
XSelectInput(dis,root,SubstructureNotifyMask|SubstructureRedirectMask);
|
XSelectInput(dis,root,SubstructureNotifyMask|SubstructureRedirectMask);
|
||||||
}
|
}
|
||||||
@@ -657,7 +657,7 @@ void update_current() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
// Open display
|
// Open display
|
||||||
if(!(dis = XOpenDisplay(NULL)))
|
if(!(dis = XOpenDisplay(NULL)))
|
||||||
die("Cannot open display!");
|
die("Cannot open display!");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user