44 |
44 |
45 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
45 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
46 enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ |
46 enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ |
47 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
47 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
48 enum { ColFG, ColBG, ColLast }; /* color */ |
48 enum { ColFG, ColBG, ColLast }; /* color */ |
49 |
|
50 typedef enum { |
|
51 StackLeft, StackBottom, StackRight |
|
52 } StackPos; /* stack position*/ |
|
53 |
49 |
54 typedef enum { |
50 typedef enum { |
55 TopLeft, TopRight, BotLeft, BotRight |
51 TopLeft, TopRight, BotLeft, BotRight |
56 } Corner; /* window corners */ |
52 } Corner; /* window corners */ |
57 |
53 |
109 extern Bool running, issel, *seltag; /* seltag is array of Bool */ |
105 extern Bool running, issel, *seltag; /* seltag is array of Bool */ |
110 extern Client *clients, *sel, *stack; /* global client list and stack */ |
106 extern Client *clients, *sel, *stack; /* global client list and stack */ |
111 extern Cursor cursor[CurLast]; |
107 extern Cursor cursor[CurLast]; |
112 extern DC dc; /* global draw context */ |
108 extern DC dc; /* global draw context */ |
113 extern Display *dpy; |
109 extern Display *dpy; |
114 extern StackPos stackpos; |
|
115 extern Window root, barwin; |
110 extern Window root, barwin; |
116 |
111 |
117 /* client.c */ |
112 /* client.c */ |
118 extern void ban(Client *c); /* ban c from screen */ |
113 extern void ban(Client *c); /* ban c from screen */ |
119 extern void configure(Client *c); /* send synthetic configure event */ |
114 extern void configure(Client *c); /* send synthetic configure event */ |
168 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
163 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
169 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
164 extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
170 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
165 extern Bool isvisible(Client *c); /* returns True if client is visible */ |
171 extern void resizecol(Arg *arg); /* resizes the master percent with arg's index value */ |
166 extern void resizecol(Arg *arg); /* resizes the master percent with arg's index value */ |
172 extern void restack(void); /* restores z layers of all clients */ |
167 extern void restack(void); /* restores z layers of all clients */ |
173 extern void togglestackpos(Arg *arg); /* toggles stack position */ |
|
174 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
168 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
175 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
169 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
176 extern void view(Arg *arg); /* views the tag with arg's index */ |
170 extern void view(Arg *arg); /* views the tag with arg's index */ |
177 extern void viewall(Arg *arg); /* views all tags, arg is ignored */ |
171 extern void viewall(Arg *arg); /* views all tags, arg is ignored */ |
178 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ |
172 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ |