]> git.sur5r.net Git - i3/i3/blobdiff - include/table.h
Bugfix: null-terminate buffer
[i3/i3] / include / table.h
index 355839b1820a56dc1905e1bae4fb0b450672f946..6236bef56e1283c0ae85dd65583ae8476bd29908 100644 (file)
@@ -21,7 +21,8 @@
 #define CUR_CELL (CUR_TABLE[current_col][current_row])
 
 extern Workspace *c_ws;
-extern Workspace workspaces[10];
+extern TAILQ_HEAD(workspaces_head, Workspace) *workspaces;
+//extern int num_workspaces;
 extern int current_col;
 extern int current_row;
 
@@ -47,7 +48,7 @@ void expand_table_cols_at_head(Workspace *workspace);
  * Performs simple bounds checking for the given column/row
  *
  */
-bool cell_exists(int col, int row);
+bool cell_exists(Workspace *ws, int col, int row);
 
 /**
  * Shrinks the table by "compacting" it, that is, removing completely empty