diff options
author | 2016-09-17 15:54:45 -0500 | |
---|---|---|
committer | 2016-09-17 15:54:45 -0500 | |
commit | e18b7cdfa920d536e4911a7ccbc2d6da5ae759f4 (patch) | |
tree | 8d64bd01413c08c5250085e8666cb4bef75efc97 /include/sway | |
parent | Merge pull request #903 from RyanDwyer/fix-swaybar-output (diff) | |
download | sway-e18b7cdfa920d536e4911a7ccbc2d6da5ae759f4.tar.gz sway-e18b7cdfa920d536e4911a7ccbc2d6da5ae759f4.tar.zst sway-e18b7cdfa920d536e4911a7ccbc2d6da5ae759f4.zip |
add global `current_focus` pointer
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/container.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 4dd7f3a0..215c0b07 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -8,6 +8,7 @@ | |||
8 | typedef struct sway_container swayc_t; | 8 | typedef struct sway_container swayc_t; |
9 | 9 | ||
10 | extern swayc_t root_container; | 10 | extern swayc_t root_container; |
11 | extern swayc_t *current_focus; | ||
11 | 12 | ||
12 | /** | 13 | /** |
13 | * Different kinds of containers. | 14 | * Different kinds of containers. |
@@ -16,11 +17,11 @@ extern swayc_t root_container; | |||
16 | * it on this list. | 17 | * it on this list. |
17 | */ | 18 | */ |
18 | enum swayc_types { | 19 | enum swayc_types { |
19 | C_ROOT, /**< The root container. Only one of these ever exists. */ | 20 | C_ROOT, /**< The root container. Only one of these ever exists. */ |
20 | C_OUTPUT, /**< An output (aka monitor, head, etc). */ | 21 | C_OUTPUT, /**< An output (aka monitor, head, etc). */ |
21 | C_WORKSPACE, /**< A workspace. */ | 22 | C_WORKSPACE, /**< A workspace. */ |
22 | C_CONTAINER, /**< A manually created container. */ | 23 | C_CONTAINER, /**< A manually created container. */ |
23 | C_VIEW, /**< A view (aka window). */ | 24 | C_VIEW, /**< A view (aka window). */ |
24 | // Keep last | 25 | // Keep last |
25 | C_TYPES, | 26 | C_TYPES, |
26 | }; | 27 | }; |
@@ -29,20 +30,20 @@ enum swayc_types { | |||
29 | * Different ways to arrange a container. | 30 | * Different ways to arrange a container. |
30 | */ | 31 | */ |
31 | enum swayc_layouts { | 32 | enum swayc_layouts { |
32 | L_NONE, /**< Used for containers that have no layout (views, root) */ | 33 | L_NONE, /**< Used for containers that have no layout (views, root) */ |
33 | L_HORIZ, | 34 | L_HORIZ, |
34 | L_VERT, | 35 | L_VERT, |
35 | L_STACKED, | 36 | L_STACKED, |
36 | L_TABBED, | 37 | L_TABBED, |
37 | L_FLOATING, /**< A psuedo-container, removed from the tree, to hold floating windows */ | 38 | L_FLOATING, /**< A psuedo-container, removed from the tree, to hold floating windows */ |
38 | // Keep last | 39 | // Keep last |
39 | L_LAYOUTS, | 40 | L_LAYOUTS, |
40 | }; | 41 | }; |
41 | 42 | ||
42 | enum swayc_border_types { | 43 | enum swayc_border_types { |
43 | B_NONE, /**< No border */ | 44 | B_NONE, /**< No border */ |
44 | B_PIXEL, /**< 1px border */ | 45 | B_PIXEL, /**< 1px border */ |
45 | B_NORMAL /**< Normal border with title bar */ | 46 | B_NORMAL /**< Normal border with title bar */ |
46 | }; | 47 | }; |
47 | 48 | ||
48 | /** | 49 | /** |