Skip to content

Commit

Permalink
swaybar: annotate wl_list properties in definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyfan committed Oct 8, 2018
1 parent 462a0e8 commit 756e021
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions include/swaybar/bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ struct swaybar {
int ipc_event_socketfd;
int ipc_socketfd;

struct wl_list outputs;
struct wl_list outputs; // swaybar_output::link
};

struct swaybar_output {
struct wl_list link;
struct wl_list link; // swaybar::outputs
struct swaybar *bar;
struct wl_output *output;
struct zxdg_output_v1 *xdg_output;
struct wl_surface *surface;
struct zwlr_layer_surface_v1 *layer_surface;
uint32_t wl_name;

struct wl_list workspaces;
struct wl_list hotspots;
struct wl_list workspaces; // swaybar_workspace::link
struct wl_list hotspots; // swaybar_hotspot::link

char *name;
bool focused;
Expand All @@ -57,7 +57,7 @@ struct swaybar_output {
};

struct swaybar_workspace {
struct wl_list link;
struct wl_list link; // swaybar_output::workspaces
int num;
char *name;
bool focused;
Expand Down
2 changes: 1 addition & 1 deletion include/swaybar/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct box_colors {
};

struct config_output {
struct wl_list link;
struct wl_list link; // swaybar_config::outputs
char *name;
size_t index;
};
Expand Down
2 changes: 1 addition & 1 deletion include/swaybar/i3bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "status_line.h"

struct i3bar_block {
struct wl_list link;
struct wl_list link; // status_link::blocks
int ref_count;
char *full_text, *short_text, *align;
bool urgent;
Expand Down
2 changes: 1 addition & 1 deletion include/swaybar/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum hotspot_event_handling {
};

struct swaybar_hotspot {
struct wl_list link;
struct wl_list link; // swaybar_output::hotspots
int x, y, width, height;
enum hotspot_event_handling (*callback)(struct swaybar_output *output,
int x, int y, enum x11_button button, void *data);
Expand Down

0 comments on commit 756e021

Please sign in to comment.