]> git.lizzy.rs Git - bspwm.git/blobdiff - types.h
the name
[bspwm.git] / types.h
diff --git a/types.h b/types.h
index b84b94c792554e7dcc345acc87212640087dcd1d..336d99372075bf051977dd5705f35c64c078ab7b 100644 (file)
--- a/types.h
+++ b/types.h
@@ -1,7 +1,5 @@
-typedef enum {
-    false,
-    true
-} bool;
+#ifndef _TYPES_H
+#define _TYPES_H
 
 typedef enum {
     LAYOUT_TILED,
@@ -16,12 +14,17 @@ typedef enum {
 typedef enum {
     TYPE_HORIZONTAL,
     TYPE_VERTICAL
-} splittype_t;
+} split_type_t;
 
 typedef enum {
     MODE_AUTOMATIC,
     MODE_MANUAL
-} splitmode_t;
+} split_mode_t;
+
+typedef enum {
+    STRATEGY_REPLACE,
+    STRATEGY_PAIR
+} insertion_strategy_t;
 
 typedef struct {
     xcb_window_t win;
@@ -32,9 +35,10 @@ typedef struct {
 } Client;
 
 typedef struct {
-    splittype_t split_type;
+    split_type_t split_type;
     double split_ratio;
-    splitmode_t split_mode;
+    split_mode_t split_mode;
+    insertion_strategy_t insertion_strategy;
     xcb_rectangle_t rectangle;
     struct Node *first_child;
     struct Node *second_child;
@@ -71,3 +75,5 @@ typedef struct {
     struct Desktop *previous;
     struct Desktop *next;
 } Desktop;
+
+#endif