diff options
Diffstat (limited to 'src/structs.h')
| -rw-r--r-- | src/structs.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h new file mode 100644 index 0000000..8215bf5 --- /dev/null +++ b/src/structs.h @@ -0,0 +1,48 @@ +#pragma once + +#include <X11/Xlib.h> + +#include <X11/extensions/Xrandr.h> +#include <string> +#include <vector> + +#define noID -1 + +struct Client +{ + int ID; + Window w; + bool floating; + bool fullscreen; +}; + +enum TileDir +{ + horizontal, + vertical, + noDir +}; + +struct Frame +{ + int ID; + int pID; + + bool isClient; + + //If its a client (window) + int cID; + + //If it isn't a client + TileDir dir; + std::vector<int> subFrameIDs; + bool isRoot; + std::vector<int> floatingFrameIDs; + //int whichChildFocused = 0; +}; + +struct ScreenInfo +{ + std::string name; + int x, y, w, h; +}; |
