diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-10-06 19:02:12 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-10-14 13:33:12 +0100 |
commit | 18eaf452245d47461070894b4324d2afa47b0b05 (patch) | |
tree | 3c8d5c5289329f3862764d216b3353acea888ab6 /include/swaybar | |
parent | swaybar: save id upon startup (diff) | |
download | sway-18eaf452245d47461070894b4324d2afa47b0b05.tar.gz sway-18eaf452245d47461070894b4324d2afa47b0b05.tar.zst sway-18eaf452245d47461070894b4324d2afa47b0b05.zip |
swaybar: annotate wl_list properties in definitions
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/bar.h | 12 | ||||
-rw-r--r-- | include/swaybar/config.h | 2 | ||||
-rw-r--r-- | include/swaybar/i3bar.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index d29db31e..3c1a236d 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -37,7 +37,7 @@ enum hotspot_event_handling { | |||
37 | }; | 37 | }; |
38 | 38 | ||
39 | struct swaybar_hotspot { | 39 | struct swaybar_hotspot { |
40 | struct wl_list link; | 40 | struct wl_list link; // swaybar_output::hotspots |
41 | int x, y, width, height; | 41 | int x, y, width, height; |
42 | enum hotspot_event_handling (*callback)(struct swaybar_output *output, | 42 | enum hotspot_event_handling (*callback)(struct swaybar_output *output, |
43 | int x, int y, enum x11_button button, void *data); | 43 | int x, int y, enum x11_button button, void *data); |
@@ -62,11 +62,11 @@ struct swaybar { | |||
62 | int ipc_event_socketfd; | 62 | int ipc_event_socketfd; |
63 | int ipc_socketfd; | 63 | int ipc_socketfd; |
64 | 64 | ||
65 | struct wl_list outputs; | 65 | struct wl_list outputs; // swaybar_output::link |
66 | }; | 66 | }; |
67 | 67 | ||
68 | struct swaybar_output { | 68 | struct swaybar_output { |
69 | struct wl_list link; | 69 | struct wl_list link; // swaybar::outputs |
70 | struct swaybar *bar; | 70 | struct swaybar *bar; |
71 | struct wl_output *output; | 71 | struct wl_output *output; |
72 | struct zxdg_output_v1 *xdg_output; | 72 | struct zxdg_output_v1 *xdg_output; |
@@ -74,8 +74,8 @@ struct swaybar_output { | |||
74 | struct zwlr_layer_surface_v1 *layer_surface; | 74 | struct zwlr_layer_surface_v1 *layer_surface; |
75 | uint32_t wl_name; | 75 | uint32_t wl_name; |
76 | 76 | ||
77 | struct wl_list workspaces; | 77 | struct wl_list workspaces; // swaybar_workspace::link |
78 | struct wl_list hotspots; | 78 | struct wl_list hotspots; // swaybar_hotspot::link |
79 | 79 | ||
80 | char *name; | 80 | char *name; |
81 | bool focused; | 81 | bool focused; |
@@ -90,7 +90,7 @@ struct swaybar_output { | |||
90 | }; | 90 | }; |
91 | 91 | ||
92 | struct swaybar_workspace { | 92 | struct swaybar_workspace { |
93 | struct wl_list link; | 93 | struct wl_list link; // swaybar_output::workspaces |
94 | int num; | 94 | int num; |
95 | char *name; | 95 | char *name; |
96 | bool focused; | 96 | bool focused; |
diff --git a/include/swaybar/config.h b/include/swaybar/config.h index d0336c27..99948463 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h | |||
@@ -13,7 +13,7 @@ struct box_colors { | |||
13 | }; | 13 | }; |
14 | 14 | ||
15 | struct config_output { | 15 | struct config_output { |
16 | struct wl_list link; | 16 | struct wl_list link; // swaybar_config::outputs |
17 | char *name; | 17 | char *name; |
18 | size_t index; | 18 | size_t index; |
19 | }; | 19 | }; |
diff --git a/include/swaybar/i3bar.h b/include/swaybar/i3bar.h index 12d9b317..d4a48e07 100644 --- a/include/swaybar/i3bar.h +++ b/include/swaybar/i3bar.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "status_line.h" | 5 | #include "status_line.h" |
6 | 6 | ||
7 | struct i3bar_block { | 7 | struct i3bar_block { |
8 | struct wl_list link; | 8 | struct wl_list link; // status_link::blocks |
9 | int ref_count; | 9 | int ref_count; |
10 | char *full_text, *short_text, *align; | 10 | char *full_text, *short_text, *align; |
11 | bool urgent; | 11 | bool urgent; |