diff options
author | 2016-09-27 14:27:29 -0400 | |
---|---|---|
committer | 2016-09-27 14:27:29 -0400 | |
commit | a95ce5ce6575ac68a6af2c6c4cbb001be5799737 (patch) | |
tree | 938fc104869c80c036944eca7eb03402e3d5e471 /include | |
parent | Merge pull request #915 from RyanDwyer/implement-workspace-number-default (diff) | |
parent | add unique IDs to containers (diff) | |
download | sway-a95ce5ce6575ac68a6af2c6c4cbb001be5799737.tar.gz sway-a95ce5ce6575ac68a6af2c6c4cbb001be5799737.tar.zst sway-a95ce5ce6575ac68a6af2c6c4cbb001be5799737.zip |
Merge pull request #914 from zandrmartin/container-ids
add unique IDs to containers
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/container.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 215c0b07..67b747a0 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define _SWAY_CONTAINER_H | 2 | #define _SWAY_CONTAINER_H |
3 | #include <sys/types.h> | 3 | #include <sys/types.h> |
4 | #include <wlc/wlc.h> | 4 | #include <wlc/wlc.h> |
5 | #include <stdint.h> | ||
5 | 6 | ||
6 | #include "list.h" | 7 | #include "list.h" |
7 | 8 | ||
@@ -58,6 +59,12 @@ struct sway_container { | |||
58 | */ | 59 | */ |
59 | wlc_handle handle; | 60 | wlc_handle handle; |
60 | 61 | ||
62 | /** | ||
63 | * A unique ID to identify this container. Primarily used in the | ||
64 | * get_tree JSON output. | ||
65 | */ | ||
66 | size_t id; | ||
67 | |||
61 | enum swayc_types type; | 68 | enum swayc_types type; |
62 | enum swayc_layouts layout; | 69 | enum swayc_layouts layout; |
63 | enum swayc_layouts prev_layout; | 70 | enum swayc_layouts prev_layout; |