diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 4 | ||||
-rw-r--r-- | include/sway/config.h | 24 | ||||
-rw-r--r-- | include/sway/debug.h | 2 | ||||
-rw-r--r-- | include/sway/ipc-json.h | 2 | ||||
-rw-r--r-- | include/sway/tree/container.h | 3 | ||||
-rw-r--r-- | include/sway/tree/view.h | 7 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 9 | ||||
-rw-r--r-- | include/swaybar/bar.h | 7 | ||||
-rw-r--r-- | include/swaybar/config.h | 2 | ||||
-rw-r--r-- | include/swaybar/i3bar.h | 34 | ||||
-rw-r--r-- | include/swaybar/ipc.h | 2 | ||||
-rw-r--r-- | include/swaybar/render.h | 4 | ||||
-rw-r--r-- | include/swaybar/status_line.h | 27 | ||||
-rw-r--r-- | include/swaybar/tray/dbus.h | 18 | ||||
-rw-r--r-- | include/swaybar/tray/sni_watcher.h | 10 | ||||
-rw-r--r-- | include/swaybar/tray/tray.h | 32 | ||||
-rw-r--r-- | include/swaylock/swaylock.h | 3 |
17 files changed, 75 insertions, 115 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 1654eb48..64f707f4 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -95,7 +95,7 @@ struct cmd_results *add_color(const char *name, | |||
95 | /** | 95 | /** |
96 | * TODO: Move this function and its dependent functions to container.c. | 96 | * TODO: Move this function and its dependent functions to container.c. |
97 | */ | 97 | */ |
98 | void container_resize_tiled(struct sway_container *parent, enum wlr_edges edge, | 98 | bool container_resize_tiled(struct sway_container *parent, enum wlr_edges edge, |
99 | int amount); | 99 | int amount); |
100 | 100 | ||
101 | sway_cmd cmd_assign; | 101 | sway_cmd cmd_assign; |
@@ -160,6 +160,7 @@ sway_cmd cmd_scratchpad; | |||
160 | sway_cmd cmd_seamless_mouse; | 160 | sway_cmd cmd_seamless_mouse; |
161 | sway_cmd cmd_set; | 161 | sway_cmd cmd_set; |
162 | sway_cmd cmd_show_marks; | 162 | sway_cmd cmd_show_marks; |
163 | sway_cmd cmd_smart_borders; | ||
163 | sway_cmd cmd_smart_gaps; | 164 | sway_cmd cmd_smart_gaps; |
164 | sway_cmd cmd_split; | 165 | sway_cmd cmd_split; |
165 | sway_cmd cmd_splith; | 166 | sway_cmd cmd_splith; |
@@ -217,6 +218,7 @@ sway_cmd bar_colors_cmd_urgent_workspace; | |||
217 | sway_cmd input_cmd_seat; | 218 | sway_cmd input_cmd_seat; |
218 | sway_cmd input_cmd_accel_profile; | 219 | sway_cmd input_cmd_accel_profile; |
219 | sway_cmd input_cmd_click_method; | 220 | sway_cmd input_cmd_click_method; |
221 | sway_cmd input_cmd_drag; | ||
220 | sway_cmd input_cmd_drag_lock; | 222 | sway_cmd input_cmd_drag_lock; |
221 | sway_cmd input_cmd_dwt; | 223 | sway_cmd input_cmd_dwt; |
222 | sway_cmd input_cmd_events; | 224 | sway_cmd input_cmd_events; |
diff --git a/include/sway/config.h b/include/sway/config.h index 35f0e708..98a18b76 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -93,6 +93,7 @@ struct input_config { | |||
93 | 93 | ||
94 | int accel_profile; | 94 | int accel_profile; |
95 | int click_method; | 95 | int click_method; |
96 | int drag; | ||
96 | int drag_lock; | 97 | int drag_lock; |
97 | int dwt; | 98 | int dwt; |
98 | int left_handed; | 99 | int left_handed; |
@@ -167,13 +168,14 @@ struct output_config { | |||
167 | }; | 168 | }; |
168 | 169 | ||
169 | /** | 170 | /** |
170 | * Maps a workspace name to an output name. | 171 | * Stores configuration for a workspace, regardless of whether the workspace |
171 | * | 172 | * exists. |
172 | * Set via `workspace <x> output <y>` | ||
173 | */ | 173 | */ |
174 | struct workspace_output { | 174 | struct workspace_config { |
175 | char *output; | ||
176 | char *workspace; | 175 | char *workspace; |
176 | char *output; | ||
177 | int gaps_inner; | ||
178 | int gaps_outer; | ||
177 | }; | 179 | }; |
178 | 180 | ||
179 | struct bar_config { | 181 | struct bar_config { |
@@ -251,7 +253,8 @@ enum edge_border_types { | |||
251 | E_VERTICAL, /**< hide vertical edge borders */ | 253 | E_VERTICAL, /**< hide vertical edge borders */ |
252 | E_HORIZONTAL, /**< hide horizontal edge borders */ | 254 | E_HORIZONTAL, /**< hide horizontal edge borders */ |
253 | E_BOTH, /**< hide vertical and horizontal edge borders */ | 255 | E_BOTH, /**< hide vertical and horizontal edge borders */ |
254 | E_SMART /**< hide both if precisely one window is present in workspace */ | 256 | E_SMART, /**< hide both if precisely one window is present in workspace */ |
257 | E_SMART_NO_GAPS, /**< hide both if one window and gaps to edge is zero */ | ||
255 | }; | 258 | }; |
256 | 259 | ||
257 | enum command_context { | 260 | enum command_context { |
@@ -327,7 +330,7 @@ struct sway_config { | |||
327 | list_t *modes; | 330 | list_t *modes; |
328 | list_t *bars; | 331 | list_t *bars; |
329 | list_t *cmd_queue; | 332 | list_t *cmd_queue; |
330 | list_t *workspace_outputs; | 333 | list_t *workspace_configs; |
331 | list_t *output_configs; | 334 | list_t *output_configs; |
332 | list_t *input_configs; | 335 | list_t *input_configs; |
333 | list_t *seat_configs; | 336 | list_t *seat_configs; |
@@ -381,6 +384,7 @@ struct sway_config { | |||
381 | int border_thickness; | 384 | int border_thickness; |
382 | int floating_border_thickness; | 385 | int floating_border_thickness; |
383 | enum edge_border_types hide_edge_borders; | 386 | enum edge_border_types hide_edge_borders; |
387 | enum edge_border_types saved_edge_borders; | ||
384 | 388 | ||
385 | // border colors | 389 | // border colors |
386 | struct { | 390 | struct { |
@@ -450,8 +454,6 @@ void free_sway_variable(struct sway_variable *var); | |||
450 | */ | 454 | */ |
451 | char *do_var_replacement(char *str); | 455 | char *do_var_replacement(char *str); |
452 | 456 | ||
453 | struct cmd_results *check_security_config(); | ||
454 | |||
455 | int input_identifier_cmp(const void *item, const void *data); | 457 | int input_identifier_cmp(const void *item, const void *data); |
456 | 458 | ||
457 | struct input_config *new_input_config(const char* identifier); | 459 | struct input_config *new_input_config(const char* identifier); |
@@ -472,7 +474,7 @@ struct seat_config *copy_seat_config(struct seat_config *seat); | |||
472 | 474 | ||
473 | void free_seat_config(struct seat_config *ic); | 475 | void free_seat_config(struct seat_config *ic); |
474 | 476 | ||
475 | struct seat_attachment_config *seat_attachment_config_new(); | 477 | struct seat_attachment_config *seat_attachment_config_new(void); |
476 | 478 | ||
477 | struct seat_attachment_config *seat_config_get_attachment( | 479 | struct seat_attachment_config *seat_config_get_attachment( |
478 | struct seat_config *seat_config, char *identifier); | 480 | struct seat_config *seat_config, char *identifier); |
@@ -518,6 +520,8 @@ struct bar_config *default_bar_config(void); | |||
518 | 520 | ||
519 | void free_bar_config(struct bar_config *bar); | 521 | void free_bar_config(struct bar_config *bar); |
520 | 522 | ||
523 | void free_workspace_config(struct workspace_config *wsc); | ||
524 | |||
521 | /** | 525 | /** |
522 | * Updates the value of config->font_height based on the max title height | 526 | * Updates the value of config->font_height based on the max title height |
523 | * reported by each container. If recalculate is true, the containers will | 527 | * reported by each container. If recalculate is true, the containers will |
diff --git a/include/sway/debug.h b/include/sway/debug.h index bf3a5f6d..0e9bb056 100644 --- a/include/sway/debug.h +++ b/include/sway/debug.h | |||
@@ -17,6 +17,6 @@ struct sway_debug { | |||
17 | 17 | ||
18 | extern struct sway_debug debug; | 18 | extern struct sway_debug debug; |
19 | 19 | ||
20 | void update_debug_tree(); | 20 | void update_debug_tree(void); |
21 | 21 | ||
22 | #endif | 22 | #endif |
diff --git a/include/sway/ipc-json.h b/include/sway/ipc-json.h index fef243e3..1cbfd15d 100644 --- a/include/sway/ipc-json.h +++ b/include/sway/ipc-json.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include "sway/tree/container.h" | 4 | #include "sway/tree/container.h" |
5 | #include "sway/input/input-manager.h" | 5 | #include "sway/input/input-manager.h" |
6 | 6 | ||
7 | json_object *ipc_json_get_version(); | 7 | json_object *ipc_json_get_version(void); |
8 | 8 | ||
9 | json_object *ipc_json_describe_disabled_output(struct sway_output *o); | 9 | json_object *ipc_json_describe_disabled_output(struct sway_output *o); |
10 | json_object *ipc_json_describe_node(struct sway_node *node); | 10 | json_object *ipc_json_describe_node(struct sway_node *node); |
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 6019602c..da6592b4 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -94,9 +94,6 @@ struct sway_container { | |||
94 | 94 | ||
95 | // The gaps currently applied to the container. | 95 | // The gaps currently applied to the container. |
96 | double current_gaps; | 96 | double current_gaps; |
97 | bool has_gaps; | ||
98 | double gaps_inner; | ||
99 | double gaps_outer; | ||
100 | 97 | ||
101 | struct sway_workspace *workspace; // NULL when hidden in the scratchpad | 98 | struct sway_workspace *workspace; // NULL when hidden in the scratchpad |
102 | struct sway_container *parent; // NULL if container in root of workspace | 99 | struct sway_container *parent; // NULL if container in root of workspace |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 2c7b4c2b..028be536 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -265,6 +265,13 @@ uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, | |||
265 | int height); | 265 | int height); |
266 | 266 | ||
267 | /** | 267 | /** |
268 | * Whether or not the view is the only visible view in its tree. If the view | ||
269 | * is tiling, there may be floating views. If the view is floating, there may | ||
270 | * be tiling views or views in a different floating container. | ||
271 | */ | ||
272 | bool view_is_only_visible(struct sway_view *view); | ||
273 | |||
274 | /** | ||
268 | * Configure the view's position and size based on the container's position and | 275 | * Configure the view's position and size based on the container's position and |
269 | * size, taking borders into consideration. | 276 | * size, taking borders into consideration. |
270 | */ | 277 | */ |
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index e4b616d1..efdae5a1 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h | |||
@@ -32,10 +32,9 @@ struct sway_workspace { | |||
32 | enum sway_container_layout layout; | 32 | enum sway_container_layout layout; |
33 | enum sway_container_layout prev_split_layout; | 33 | enum sway_container_layout prev_split_layout; |
34 | 34 | ||
35 | double current_gaps; | 35 | int current_gaps; |
36 | bool has_gaps; | 36 | int gaps_inner; |
37 | double gaps_inner; | 37 | int gaps_outer; |
38 | double gaps_outer; | ||
39 | 38 | ||
40 | struct sway_output *output; // NULL if no outputs are connected | 39 | struct sway_output *output; // NULL if no outputs are connected |
41 | list_t *floating; // struct sway_container | 40 | list_t *floating; // struct sway_container |
@@ -48,6 +47,8 @@ struct sway_workspace { | |||
48 | 47 | ||
49 | extern char *prev_workspace_name; | 48 | extern char *prev_workspace_name; |
50 | 49 | ||
50 | struct workspace_config *workspace_find_config(const char *ws_name); | ||
51 | |||
51 | struct sway_output *workspace_get_initial_output(const char *name); | 52 | struct sway_output *workspace_get_initial_output(const char *name); |
52 | 53 | ||
53 | struct sway_workspace *workspace_create(struct sway_output *output, | 54 | struct sway_workspace *workspace_create(struct sway_output *output, |
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 29e96159..de234111 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -54,7 +54,6 @@ struct swaybar { | |||
54 | struct wl_seat *seat; | 54 | struct wl_seat *seat; |
55 | 55 | ||
56 | struct swaybar_config *config; | 56 | struct swaybar_config *config; |
57 | struct swaybar_output *focused_output; | ||
58 | struct swaybar_pointer pointer; | 57 | struct swaybar_pointer pointer; |
59 | struct status_line *status; | 58 | struct status_line *status; |
60 | 59 | ||
@@ -84,6 +83,8 @@ struct swaybar_output { | |||
84 | enum wl_output_subpixel subpixel; | 83 | enum wl_output_subpixel subpixel; |
85 | struct pool_buffer buffers[2]; | 84 | struct pool_buffer buffers[2]; |
86 | struct pool_buffer *current_buffer; | 85 | struct pool_buffer *current_buffer; |
86 | bool dirty; | ||
87 | bool frame_scheduled; | ||
87 | }; | 88 | }; |
88 | 89 | ||
89 | struct swaybar_workspace { | 90 | struct swaybar_workspace { |
@@ -95,9 +96,7 @@ struct swaybar_workspace { | |||
95 | bool urgent; | 96 | bool urgent; |
96 | }; | 97 | }; |
97 | 98 | ||
98 | void bar_setup(struct swaybar *bar, | 99 | bool bar_setup(struct swaybar *bar, const char *socket_path, const char *bar_id); |
99 | const char *socket_path, | ||
100 | const char *bar_id); | ||
101 | void bar_run(struct swaybar *bar); | 100 | void bar_run(struct swaybar *bar); |
102 | void bar_teardown(struct swaybar *bar); | 101 | void bar_teardown(struct swaybar *bar); |
103 | 102 | ||
diff --git a/include/swaybar/config.h b/include/swaybar/config.h index 6739c28a..5f5688cf 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h | |||
@@ -50,7 +50,7 @@ struct swaybar_config { | |||
50 | } colors; | 50 | } colors; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct swaybar_config *init_config(); | 53 | struct swaybar_config *init_config(void); |
54 | void free_config(struct swaybar_config *config); | 54 | void free_config(struct swaybar_config *config); |
55 | uint32_t parse_position(const char *position); | 55 | uint32_t parse_position(const char *position); |
56 | 56 | ||
diff --git a/include/swaybar/i3bar.h b/include/swaybar/i3bar.h new file mode 100644 index 00000000..12d9b317 --- /dev/null +++ b/include/swaybar/i3bar.h | |||
@@ -0,0 +1,34 @@ | |||
1 | #ifndef _SWAYBAR_I3BAR_H | ||
2 | #define _SWAYBAR_I3BAR_H | ||
3 | |||
4 | #include "bar.h" | ||
5 | #include "status_line.h" | ||
6 | |||
7 | struct i3bar_block { | ||
8 | struct wl_list link; | ||
9 | int ref_count; | ||
10 | char *full_text, *short_text, *align; | ||
11 | bool urgent; | ||
12 | uint32_t *color; | ||
13 | int min_width; | ||
14 | char *name, *instance; | ||
15 | bool separator; | ||
16 | int separator_block_width; | ||
17 | bool markup; | ||
18 | // Airblader features | ||
19 | uint32_t background; | ||
20 | uint32_t border; | ||
21 | int border_top; | ||
22 | int border_bottom; | ||
23 | int border_left; | ||
24 | int border_right; | ||
25 | }; | ||
26 | |||
27 | void i3bar_block_unref(struct i3bar_block *block); | ||
28 | bool i3bar_handle_readable(struct status_line *status); | ||
29 | enum hotspot_event_handling i3bar_block_send_click(struct status_line *status, | ||
30 | struct i3bar_block *block, int x, int y, enum x11_button button); | ||
31 | enum x11_button wl_button_to_x11_button(uint32_t button); | ||
32 | enum x11_button wl_axis_to_x11_button(uint32_t axis, wl_fixed_t value); | ||
33 | |||
34 | #endif | ||
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h index a1696bcf..81e48a6b 100644 --- a/include/swaybar/ipc.h +++ b/include/swaybar/ipc.h | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <stdbool.h> | 3 | #include <stdbool.h> |
4 | #include "swaybar/bar.h" | 4 | #include "swaybar/bar.h" |
5 | 5 | ||
6 | void ipc_initialize(struct swaybar *bar, const char *bar_id); | 6 | bool ipc_initialize(struct swaybar *bar, const char *bar_id); |
7 | bool handle_ipc_readable(struct swaybar *bar); | 7 | bool handle_ipc_readable(struct swaybar *bar); |
8 | void ipc_get_workspaces(struct swaybar *bar); | 8 | void ipc_get_workspaces(struct swaybar *bar); |
9 | void ipc_send_workspace_command(struct swaybar *bar, const char *ws); | 9 | void ipc_send_workspace_command(struct swaybar *bar, const char *ws); |
diff --git a/include/swaybar/render.h b/include/swaybar/render.h index 071e2298..ebdc69e4 100644 --- a/include/swaybar/render.h +++ b/include/swaybar/render.h | |||
@@ -1,10 +1,8 @@ | |||
1 | #ifndef _SWAYBAR_RENDER_H | 1 | #ifndef _SWAYBAR_RENDER_H |
2 | #define _SWAYBAR_RENDER_H | 2 | #define _SWAYBAR_RENDER_H |
3 | 3 | ||
4 | struct swaybar; | ||
5 | struct swaybar_output; | 4 | struct swaybar_output; |
6 | struct swaybar_config; | ||
7 | 5 | ||
8 | void render_frame(struct swaybar *bar, struct swaybar_output *output); | 6 | void render_frame(struct swaybar_output *output); |
9 | 7 | ||
10 | #endif | 8 | #endif |
diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index d3eabdf6..ca88b0c5 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h | |||
@@ -13,26 +13,6 @@ enum status_protocol { | |||
13 | PROTOCOL_I3BAR, | 13 | PROTOCOL_I3BAR, |
14 | }; | 14 | }; |
15 | 15 | ||
16 | struct i3bar_block { | ||
17 | struct wl_list link; | ||
18 | int ref_count; | ||
19 | char *full_text, *short_text, *align; | ||
20 | bool urgent; | ||
21 | uint32_t *color; | ||
22 | int min_width; | ||
23 | char *name, *instance; | ||
24 | bool separator; | ||
25 | int separator_block_width; | ||
26 | bool markup; | ||
27 | // Airblader features | ||
28 | uint32_t background; | ||
29 | uint32_t border; | ||
30 | int border_top; | ||
31 | int border_bottom; | ||
32 | int border_left; | ||
33 | int border_right; | ||
34 | }; | ||
35 | |||
36 | struct status_line { | 16 | struct status_line { |
37 | pid_t pid; | 17 | pid_t pid; |
38 | int read_fd, write_fd; | 18 | int read_fd, write_fd; |
@@ -43,6 +23,7 @@ struct status_line { | |||
43 | struct wl_list blocks; // i3bar_block::link | 23 | struct wl_list blocks; // i3bar_block::link |
44 | 24 | ||
45 | bool click_events; | 25 | bool click_events; |
26 | bool clicked; | ||
46 | char *buffer; | 27 | char *buffer; |
47 | size_t buffer_size; | 28 | size_t buffer_size; |
48 | size_t buffer_index; | 29 | size_t buffer_index; |
@@ -55,11 +36,5 @@ struct status_line *status_line_init(char *cmd); | |||
55 | void status_error(struct status_line *status, const char *text); | 36 | void status_error(struct status_line *status, const char *text); |
56 | bool status_handle_readable(struct status_line *status); | 37 | bool status_handle_readable(struct status_line *status); |
57 | void status_line_free(struct status_line *status); | 38 | void status_line_free(struct status_line *status); |
58 | bool i3bar_handle_readable(struct status_line *status); | ||
59 | enum hotspot_event_handling i3bar_block_send_click(struct status_line *status, | ||
60 | struct i3bar_block *block, int x, int y, enum x11_button button); | ||
61 | void i3bar_block_unref(struct i3bar_block *block); | ||
62 | enum x11_button wl_button_to_x11_button(uint32_t button); | ||
63 | enum x11_button wl_axis_to_x11_button(uint32_t axis, wl_fixed_t value); | ||
64 | 39 | ||
65 | #endif | 40 | #endif |
diff --git a/include/swaybar/tray/dbus.h b/include/swaybar/tray/dbus.h deleted file mode 100644 index eb9cfea7..00000000 --- a/include/swaybar/tray/dbus.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #ifndef _SWAYBAR_DBUS_H | ||
2 | #define _SWAYBAR_DBUS_H | ||
3 | |||
4 | #include <stdbool.h> | ||
5 | #include <dbus/dbus.h> | ||
6 | extern DBusConnection *conn; | ||
7 | |||
8 | /** | ||
9 | * Should be called in main loop to dispatch events | ||
10 | */ | ||
11 | void dispatch_dbus(); | ||
12 | |||
13 | /** | ||
14 | * Initializes async dbus communication | ||
15 | */ | ||
16 | int dbus_init(); | ||
17 | |||
18 | #endif /* _SWAYBAR_DBUS_H */ | ||
diff --git a/include/swaybar/tray/sni_watcher.h b/include/swaybar/tray/sni_watcher.h deleted file mode 100644 index 25ddfcd2..00000000 --- a/include/swaybar/tray/sni_watcher.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef _SWAYBAR_SNI_WATCHER_H | ||
2 | #define _SWAYBAR_SNI_WATCHER_H | ||
3 | |||
4 | /** | ||
5 | * Starts the sni_watcher, the watcher is practically a black box and should | ||
6 | * only be accessed though functions described in its spec | ||
7 | */ | ||
8 | int init_sni_watcher(); | ||
9 | |||
10 | #endif /* _SWAYBAR_SNI_WATCHER_H */ | ||
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h deleted file mode 100644 index 2d0662be..00000000 --- a/include/swaybar/tray/tray.h +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | #ifndef _SWAYBAR_TRAY_H | ||
2 | #define _SWAYBAR_TRAY_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | #include <stdbool.h> | ||
6 | #include "swaybar/tray/dbus.h" | ||
7 | #include "swaybar/tray/sni.h" | ||
8 | #include "swaybar/bar.h" | ||
9 | #include "list.h" | ||
10 | |||
11 | extern struct tray *tray; | ||
12 | |||
13 | struct tray { | ||
14 | list_t *items; | ||
15 | }; | ||
16 | |||
17 | /** | ||
18 | * Processes a mouse event on the bar | ||
19 | */ | ||
20 | void tray_mouse_event(struct output *output, int x, int y, | ||
21 | uint32_t button, uint32_t state); | ||
22 | |||
23 | uint32_t tray_render(struct output *output, struct config *config); | ||
24 | |||
25 | void tray_upkeep(struct bar *bar); | ||
26 | |||
27 | /** | ||
28 | * Initializes the tray with D-Bus | ||
29 | */ | ||
30 | void init_tray(struct bar *bar); | ||
31 | |||
32 | #endif /* _SWAYBAR_TRAY_H */ | ||
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index 2f0cd34d..970e3cc9 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h | |||
@@ -101,5 +101,8 @@ void render_frame(struct swaylock_surface *surface); | |||
101 | void render_frames(struct swaylock_state *state); | 101 | void render_frames(struct swaylock_state *state); |
102 | void damage_surface(struct swaylock_surface *surface); | 102 | void damage_surface(struct swaylock_surface *surface); |
103 | void damage_state(struct swaylock_state *state); | 103 | void damage_state(struct swaylock_state *state); |
104 | void initialize_pw_backend(void); | ||
105 | bool attempt_password(struct swaylock_password *pw); | ||
106 | void clear_password_buffer(struct swaylock_password *pw); | ||
104 | 107 | ||
105 | #endif | 108 | #endif |