From: Mike Lowis Date: Tue, 6 Aug 2024 20:26:35 +0000 (-0400) Subject: added column data type back in in prep for tiling algorithm development X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=e595149a9e982c22b1561b729af1c038ff55eb1f;p=proto%2Fanvil.git added column data type back in in prep for tiling algorithm development --- diff --git a/anvil.h b/anvil.h index 6d2df25..bcb2dfb 100644 --- a/anvil.h +++ b/anvil.h @@ -77,6 +77,8 @@ typedef struct Node { typedef struct Client { struct Client* next; + struct Client* col_next; + struct Client* col_prev; char* name; Window frame, win; int state, flags, wspace, x, y, w, h, rel_x, rel_y; @@ -87,16 +89,16 @@ typedef struct Client { Visual visual; } Client; -//typedef struct Column { -// int width; -// Client* clients; -//} Column; +typedef struct Column { + Client* first; + Client* last; + int width; +} Column; typedef struct Workspace { int monitor; -// Client* floating; -// Column columns[MAX_COL_COUNT]; -// int ncolumns; + Column columns[MAX_COL_COUNT]; + int ncolumns; } Workspace; typedef struct Monitor {