]> git.lizzy.rs Git - bspwm.git/blobdiff - types.h
History is global and stacking is independent
[bspwm.git] / types.h
diff --git a/types.h b/types.h
index 6527230e5680119543836116dd0541875d581ab4..ef86326d2992fdb8bb8675777ff6d244c33acfed 100644 (file)
--- a/types.h
+++ b/types.h
@@ -161,26 +161,12 @@ struct node_t {
     client_t *client;     /* NULL except for leaves */
 };
 
-typedef struct node_list_t node_list_t;
-struct node_list_t {
-    node_t *node;
-    bool latest;
-    node_list_t *prev;
-    node_list_t *next;
-};
-
-typedef struct {
-    node_list_t *head;
-    node_list_t *tail;
-} focus_history_t;
-
 typedef struct desktop_t desktop_t;
 struct desktop_t {
     char name[SMALEN];
     layout_t layout;
     node_t *root;
     node_t *focus;
-    focus_history_t *history;
     desktop_t *prev;
     desktop_t *next;
     int window_gap;
@@ -198,7 +184,6 @@ struct monitor_t {
     int bottom_padding;
     int left_padding;
     desktop_t *desk;
-    desktop_t *last_desk;
     desktop_t *desk_head;
     desktop_t *desk_tail;
     monitor_t *prev;
@@ -211,6 +196,21 @@ typedef struct {
     node_t *node;
 } coordinates_t;
 
+typedef struct history_t history_t;
+struct history_t {
+    coordinates_t loc;
+    bool latest;
+    history_t *prev;
+    history_t *next;
+};
+
+typedef struct stack_t stack_t;
+struct stack_t {
+    node_t *node;
+    stack_t *prev;
+    stack_t *next;
+};
+
 typedef struct {
     char name[SMALEN];
 } rule_cause_t;