mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
docs: update
This commit is contained in:
parent
b0f8c60047
commit
ed92a1e7ee
14
sowm.c
14
sowm.c
@ -7,7 +7,17 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.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)
|
#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);
|
#define FOC(W) XSetInputFocus(d, W, RevertToParent, CurrentTime);
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
@ -67,6 +77,10 @@ static XWindowAttributes attr;
|
|||||||
|
|
||||||
#include "config.h"
|
#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) = {
|
static void (*events[LASTEvent])(XEvent *e) = {
|
||||||
[ButtonPress] = button_press,
|
[ButtonPress] = button_press,
|
||||||
[ButtonRelease] = button_release,
|
[ButtonRelease] = button_release,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user