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/bar.h | |
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/bar.h')
-rw-r--r-- | include/swaybar/bar.h | 12 |
1 files changed, 6 insertions, 6 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; |