diff options
| author | Zandr Martin <zandrmartin@gmail.com> | 2016-09-21 21:05:09 -0500 | 
|---|---|---|
| committer | Zandr Martin <zandrmartin@gmail.com> | 2016-09-21 21:05:09 -0500 | 
| commit | 7d947fdb952c07c5dce5a0ae6b602f02cb274736 (patch) | |
| tree | 22a573a8ff47672d32a74da1941bee2089167f5e /include | |
| parent | d98c26d0edbab66042ff3da0348d339fd857f99d (diff) | |
| download | sway-7d947fdb952c07c5dce5a0ae6b602f02cb274736.tar.xz | |
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 @@  #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; | 
