docs: update

This commit is contained in:
Dylan Araps 2019-10-15 14:30:48 +03:00
parent b0f8c60047
commit ed92a1e7ee
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 14 additions and 0 deletions

14
sowm.c
View File

@ -7,7 +7,17 @@
#include <signal.h>
#include <unistd.h>
/*
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,