commit a071d7c03e57e0da06424914f577c3fc7dcf5898
parent 45feb5495f82ad2da403468085484c0db1c1c99f
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Fri, 11 Oct 2019 14:53:52 +0300
docs: update
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
CFLAGS+= -Wall
-LDADD+= -lX11
+LDADD+= -lX11
LDFLAGS=
PREFIX?= /usr
BINDIR?= $(PREFIX)/bin
diff --git a/catwm.c b/catwm.c
@@ -192,7 +192,7 @@ void change_desktop(const Arg arg) {
void client_to_desktop(const Arg arg) {
client *tmp = current;
int tmp2 = current_desktop;
-
+
if(arg.i == current_desktop || current == NULL)
return;
@@ -243,7 +243,7 @@ void destroynotify(XEvent *e) {
for(c=head;c;c=c->next)
if(ev->window == c->win)
i++;
-
+
// End of the hack
if(i == 0)
return;
@@ -313,7 +313,7 @@ void kill_client() {
send_kill_signal(current->win);
}
}
-
+
void maprequest(XEvent *e) {
XMapRequestEvent *ev = &e->xmaprequest;
@@ -412,7 +412,7 @@ void quit() {
Window root_return, parent;
Window *children;
int i;
- unsigned int nchildren;
+ unsigned int nchildren;
XEvent ev;
/*
@@ -497,7 +497,7 @@ void select_desktop(int i) {
current_desktop = i;
}
-void send_kill_signal(Window w) {
+void send_kill_signal(Window w) {
XEvent ke;
ke.type = ClientMessage;
ke.xclient.window = w;
@@ -553,7 +553,7 @@ void setup() {
const Arg arg = {.i = 1};
current_desktop = arg.i;
change_desktop(arg);
-
+
// To catch maprequest and destroynotify (if other wm running)
XSelectInput(dis,root,SubstructureNotifyMask|SubstructureRedirectMask);
}
@@ -657,7 +657,7 @@ void update_current() {
}
int main(int argc, char **argv) {
- // Open display
+ // Open display
if(!(dis = XOpenDisplay(NULL)))
die("Cannot open display!");