]> git.sur5r.net Git - i3/i3/blobdiff - include/util.h
Bugfix: Change the event mask to ignore enter notifies when rendering the layout...
[i3/i3] / include / util.h
index 31beeb80aad23b7056af82ffd9e4c4fe3f1b74a8..12cd852c64bf59a01db8676b5aa776bb4c79e6bf 100644 (file)
                                                 CIRCLEQ_NEXT(elm, field) : NULL)
 #define CIRCLEQ_PREV_OR_NULL(head, elm, field) (CIRCLEQ_PREV(elm, field) != CIRCLEQ_END(head) ? \
                                                 CIRCLEQ_PREV(elm, field) : NULL)
+#define FOR_TABLE(workspace) \
+                        for (int cols = 0; cols < workspace->cols; cols++) \
+                                for (int rows = 0; rows < workspace->rows; rows++)
+
 /* ##__VA_ARGS__ means: leave out __VA_ARGS__ completely if it is empty, that is,
    delete the preceding comma */
 #define LOG(fmt, ...) slog("%s:%s:%d - " fmt, __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__)