diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input_state.h | 2 | ||||
-rw-r--r-- | include/swaybar/bar.h | 1 | ||||
-rw-r--r-- | include/swaybar/status_line.h | 10 | ||||
-rw-r--r-- | include/swaybar/tray/sni.h | 1 | ||||
-rw-r--r-- | include/swaylock/swaylock.h | 3 |
5 files changed, 16 insertions, 1 deletions
diff --git a/include/sway/input_state.h b/include/sway/input_state.h index 903301fb..fd5a3a25 100644 --- a/include/sway/input_state.h +++ b/include/sway/input_state.h | |||
@@ -69,7 +69,7 @@ enum modifier_state { | |||
69 | MOD_STATE_RELEASED = 2 | 69 | MOD_STATE_RELEASED = 2 |
70 | }; | 70 | }; |
71 | 71 | ||
72 | void pointer_position_set(struct wlc_origin *new_origin, bool force_focus); | 72 | void pointer_position_set(double new_x, double new_y, bool force_focus); |
73 | void center_pointer_on(swayc_t *view); | 73 | void center_pointer_on(swayc_t *view); |
74 | 74 | ||
75 | // on button release unset mode depending on the button. | 75 | // on button release unset mode depending on the button. |
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 010e1f84..50d36e76 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -14,6 +14,7 @@ struct bar { | |||
14 | int ipc_event_socketfd; | 14 | int ipc_event_socketfd; |
15 | int ipc_socketfd; | 15 | int ipc_socketfd; |
16 | int status_read_fd; | 16 | int status_read_fd; |
17 | int status_write_fd; | ||
17 | pid_t status_command_pid; | 18 | pid_t status_command_pid; |
18 | }; | 19 | }; |
19 | 20 | ||
diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index 9b77e8a7..0664ddee 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h | |||
@@ -13,6 +13,7 @@ struct status_line { | |||
13 | list_t *block_line; | 13 | list_t *block_line; |
14 | const char *text_line; | 14 | const char *text_line; |
15 | command_protocol protocol; | 15 | command_protocol protocol; |
16 | bool click_events; | ||
16 | }; | 17 | }; |
17 | 18 | ||
18 | struct status_block { | 19 | struct status_block { |
@@ -31,6 +32,10 @@ struct status_block { | |||
31 | int border_bottom; | 32 | int border_bottom; |
32 | int border_left; | 33 | int border_left; |
33 | int border_right; | 34 | int border_right; |
35 | |||
36 | // Set during rendering | ||
37 | int x; | ||
38 | int width; | ||
34 | }; | 39 | }; |
35 | 40 | ||
36 | /** | 41 | /** |
@@ -44,6 +49,11 @@ struct status_line *init_status_line(); | |||
44 | bool handle_status_line(struct bar *bar); | 49 | bool handle_status_line(struct bar *bar); |
45 | 50 | ||
46 | /** | 51 | /** |
52 | * Handle mouse clicks. | ||
53 | */ | ||
54 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); | ||
55 | |||
56 | /** | ||
47 | * Free status line struct. | 57 | * Free status line struct. |
48 | */ | 58 | */ |
49 | void free_status_line(struct status_line *line); | 59 | void free_status_line(struct status_line *line); |
diff --git a/include/swaybar/tray/sni.h b/include/swaybar/tray/sni.h index 83809b2d..c2544e2a 100644 --- a/include/swaybar/tray/sni.h +++ b/include/swaybar/tray/sni.h | |||
@@ -28,6 +28,7 @@ void sni_icon_ref_free(struct sni_icon_ref *sni_ref); | |||
28 | 28 | ||
29 | /** | 29 | /** |
30 | * Will return a new item and get its icon. (see warning below) | 30 | * Will return a new item and get its icon. (see warning below) |
31 | * May return `NULL` if `name` is not valid. | ||
31 | */ | 32 | */ |
32 | struct StatusNotifierItem *sni_create(const char *name); | 33 | struct StatusNotifierItem *sni_create(const char *name); |
33 | 34 | ||
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index 06533108..eeed094e 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h | |||
@@ -56,6 +56,9 @@ struct lock_config { | |||
56 | struct lock_colors validating; | 56 | struct lock_colors validating; |
57 | struct lock_colors invalid; | 57 | struct lock_colors invalid; |
58 | } colors; | 58 | } colors; |
59 | |||
60 | int radius; | ||
61 | int thickness; | ||
59 | }; | 62 | }; |
60 | 63 | ||
61 | void render(struct render_data* render_data, struct lock_config *config); | 64 | void render(struct render_data* render_data, struct lock_config *config); |