From ed92a1e7eec9e562c1f7ad61c3d48d9eb8a4504d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 15 Oct 2019 14:30:48 +0300 Subject: [PATCH] docs: update --- sowm.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sowm.c b/sowm.c index 2cfb36d..f49b9ec 100644 --- a/sowm.c +++ b/sowm.c @@ -7,7 +7,17 @@ #include #include +/* + This iterates over the current desktop's + window list and is inserted where needed. +*/ #define WIN (c=list;c;c=c->next) + +/* + This sets focus to the given window. It + could very well be a function but I feel + it belongs here. +*/ #define FOC(W) XSetInputFocus(d, W, RevertToParent, CurrentTime); typedef union { @@ -67,6 +77,10 @@ static XWindowAttributes attr; #include "config.h" +/* + The list of events to subscribe to and the paired functions + to call on an event. +*/ static void (*events[LASTEvent])(XEvent *e) = { [ButtonPress] = button_press, [ButtonRelease] = button_release,