small window cycling bugs

This commit is contained in:
Sean Pringle
2014-09-14 17:11:14 +10:00
parent 1778b9d413
commit 6a70a405e6
3 changed files with 24 additions and 6 deletions

8
xoat.c
View File

@@ -127,6 +127,14 @@ void action_maximize(void*, int, client*);
#define STACK_INIT(n) stack (n); memset(&(n), 0, sizeof(stack))
#define STACK_FREE(s) while ((s)->depth) client_free((s)->clients[--(s)->depth])
#define for_stack(s,i,c)\
for ((i) = 0; (i) < (s)->depth; (i)++)\
if (((c) = (s)->clients[(i)]))
#define for_stack_rev(s,i,c)\
for ((i) = (s)->depth-1; (i) > -1; (i)--)\
if (((c) = (s)->clients[(i)]))
#define for_windows(i,c)\
for (query_windows(), (i) = 0; (i) < windows.depth; (i)++)\
if (((c) = windows.clients[(i)]))