all repos — ryudo @ de0bc0397ac6302cb4e11c53097c77abcfb30eb5

the floatiling window manager that flows; fork of rio from plan9port

fns.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* Copyright (c) 1994-1996 David Hogan, see README for licence details */

#ifdef DEBUG
#define trace(s, c, e) dotrace((s), (c), (e))
#else
#define trace(s, c, e)
#endif

#define setstate setstaterio

/* color.c */
unsigned long colorpixel(
  Display*, ScreenInfo*, int, unsigned long, unsigned long);

/* main.c */
void usage();
void initscreen();
ScreenInfo* getscreen();
Time timestamp();
void sendcmessage();
void sendconfig();
void sighandler();
void getevent();
void cleanup();

/* event.c */
void mainloop();
void configurereq();
void mapreq();
void circulatereq();
void unmap();
void newwindow();
void destroy();
void clientmesg();
void cmap();
void property();
void shapenotify();
void enter();
void leave();
void focusin();
void reparent();
void motionnotify();
BorderOrient borderorient();

/* manage.c */
int manage();
void scanwins();
void setshape();
void withdraw();
void gravitate();
void cmapfocus();
void cmapnofocus();
void getcmaps();
int _getprop();
char* getprop();
Window getwprop();
int getiprop();
int getstate();
void setstate();
void setlabel();
void getproto();
void gettrans();

/* key.c */
void keypress();
void keyrelease();
void keysetup();
void quickreshape(Client*, int, int, int, int, int);
void stickystack(int);
void centerclient(Client*, XRRMonitorInfo, int);

/* menu.c */
void button();
void spawn();
void reshape();
void move();
void delete ();
void hide();
void unhide();
void unhidec();
void renamec();
void button2();
void initb2menu();
void switch_to();
void switch_to_c();
void stick();

/* client.c */
void setactive();
void draw_border();
void active();
void nofocus();
void top();
Client* getclient();
void rmclient();
void dump_revert();
void dump_clients();
void shuffle(int);
int isautostick(Client* c);
int istransparent(Client* c);
int shouldalwaysdraw(Client* c);
int isterminalwindow(Client* c);
void ensureactive();
void ensureactiveonmonitor(int);
void shuffleonmonitor(int);
Window getrevert(Client*);

/* grab.c */
int menuhit();
Client* selectwin();
int sweep();
int drag();
int pull();
void getmouse();
void setmouse();

/* error.c */
int handler();
void fatal();
void graberror();
void showhints();
void dotrace();

/* cursor.c */
void initcurs();

void ShowEvent(XEvent*);

void fetchmonitorinfo();
int getmonitorbyclient(Client*);
int getmonitorbymouse();
void wrangle(Client*, XRRMonitorInfo);