mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
swaybar: annotate wl_list properties in definitions
This commit is contained in:
parent
d0b54e932b
commit
18eaf45224
|
@ -37,7 +37,7 @@ enum hotspot_event_handling {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct swaybar_hotspot {
|
struct swaybar_hotspot {
|
||||||
struct wl_list link;
|
struct wl_list link; // swaybar_output::hotspots
|
||||||
int x, y, width, height;
|
int x, y, width, height;
|
||||||
enum hotspot_event_handling (*callback)(struct swaybar_output *output,
|
enum hotspot_event_handling (*callback)(struct swaybar_output *output,
|
||||||
int x, int y, enum x11_button button, void *data);
|
int x, int y, enum x11_button button, void *data);
|
||||||
|
@ -62,11 +62,11 @@ struct swaybar {
|
||||||
int ipc_event_socketfd;
|
int ipc_event_socketfd;
|
||||||
int ipc_socketfd;
|
int ipc_socketfd;
|
||||||
|
|
||||||
struct wl_list outputs;
|
struct wl_list outputs; // swaybar_output::link
|
||||||
};
|
};
|
||||||
|
|
||||||
struct swaybar_output {
|
struct swaybar_output {
|
||||||
struct wl_list link;
|
struct wl_list link; // swaybar::outputs
|
||||||
struct swaybar *bar;
|
struct swaybar *bar;
|
||||||
struct wl_output *output;
|
struct wl_output *output;
|
||||||
struct zxdg_output_v1 *xdg_output;
|
struct zxdg_output_v1 *xdg_output;
|
||||||
|
@ -74,8 +74,8 @@ struct swaybar_output {
|
||||||
struct zwlr_layer_surface_v1 *layer_surface;
|
struct zwlr_layer_surface_v1 *layer_surface;
|
||||||
uint32_t wl_name;
|
uint32_t wl_name;
|
||||||
|
|
||||||
struct wl_list workspaces;
|
struct wl_list workspaces; // swaybar_workspace::link
|
||||||
struct wl_list hotspots;
|
struct wl_list hotspots; // swaybar_hotspot::link
|
||||||
|
|
||||||
char *name;
|
char *name;
|
||||||
bool focused;
|
bool focused;
|
||||||
|
@ -90,7 +90,7 @@ struct swaybar_output {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct swaybar_workspace {
|
struct swaybar_workspace {
|
||||||
struct wl_list link;
|
struct wl_list link; // swaybar_output::workspaces
|
||||||
int num;
|
int num;
|
||||||
char *name;
|
char *name;
|
||||||
bool focused;
|
bool focused;
|
||||||
|
|
|
@ -13,7 +13,7 @@ struct box_colors {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct config_output {
|
struct config_output {
|
||||||
struct wl_list link;
|
struct wl_list link; // swaybar_config::outputs
|
||||||
char *name;
|
char *name;
|
||||||
size_t index;
|
size_t index;
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "status_line.h"
|
#include "status_line.h"
|
||||||
|
|
||||||
struct i3bar_block {
|
struct i3bar_block {
|
||||||
struct wl_list link;
|
struct wl_list link; // status_link::blocks
|
||||||
int ref_count;
|
int ref_count;
|
||||||
char *full_text, *short_text, *align;
|
char *full_text, *short_text, *align;
|
||||||
bool urgent;
|
bool urgent;
|
||||||
|
|
Loading…
Reference in a new issue