aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-09-27 14:27:29 -0400
committerGitHub <noreply@github.com>2016-09-27 14:27:29 -0400
commita95ce5ce6575ac68a6af2c6c4cbb001be5799737 (patch)
tree938fc104869c80c036944eca7eb03402e3d5e471 /include/sway
parentc55ce6ef3dee013953c6cec16eb20001ca993f81 (diff)
parent7d947fdb952c07c5dce5a0ae6b602f02cb274736 (diff)
Merge pull request #914 from zandrmartin/container-ids
add unique IDs to containers
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/container.h7
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 @@
#define _SWAY_CONTAINER_H
#include <sys/types.h>
#include <wlc/wlc.h>
+#include <stdint.h>
#include "list.h"
@@ -58,6 +59,12 @@ struct sway_container {
*/
wlc_handle handle;
+ /**
+ * A unique ID to identify this container. Primarily used in the
+ * get_tree JSON output.
+ */
+ size_t id;
+
enum swayc_types type;
enum swayc_layouts layout;
enum swayc_layouts prev_layout;