mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
add unique IDs to containers
This commit is contained in:
parent
d98c26d0ed
commit
7d947fdb95
4 changed files with 13 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue