]> git.mdlowis.com Git - proto/anvil.git/commitdiff
added column data type back in in prep for tiling algorithm development
authorMike Lowis <mike.lowis@gentex.com>
Tue, 6 Aug 2024 20:26:35 +0000 (16:26 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Tue, 6 Aug 2024 20:26:35 +0000 (16:26 -0400)
anvil.h

diff --git a/anvil.h b/anvil.h
index 6d2df253cbaff7312ec999a2866eed911417a7d1..bcb2dfb4d558680dc7abe510daeef0ccf99d5e59 100644 (file)
--- 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 {