summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin@gmail.com>2016-09-21 21:05:09 -0500
committerLibravatar Zandr Martin <zandrmartin@gmail.com>2016-09-21 21:05:09 -0500
commit7d947fdb952c07c5dce5a0ae6b602f02cb274736 (patch)
tree22a573a8ff47672d32a74da1941bee2089167f5e /include
parentMerge pull request #909 from zandrmartin/grab-focused (diff)
downloadsway-7d947fdb952c07c5dce5a0ae6b602f02cb274736.tar.gz
sway-7d947fdb952c07c5dce5a0ae6b602f02cb274736.tar.zst
sway-7d947fdb952c07c5dce5a0ae6b602f02cb274736.zip
add unique IDs to containers
Diffstat (limited to 'include')
-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 @@
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;