diff options
author | Yacine Hmito <yacine.hmito@gmail.com> | 2015-12-14 23:43:52 +0100 |
---|---|---|
committer | Yacine Hmito <yacine.hmito@gmail.com> | 2015-12-15 00:15:32 +0100 |
commit | 87126a9fc2306f8e15e6148ccdc021517c414114 (patch) | |
tree | 9b81f04d730f5ee0f5e7323517c0e31164cc0cf8 /include | |
parent | Merge pull request #320 from mikkeloscar/configure-mouse-btn2 (diff) | |
download | sway-87126a9fc2306f8e15e6148ccdc021517c414114.tar.gz sway-87126a9fc2306f8e15e6148ccdc021517c414114.tar.zst sway-87126a9fc2306f8e15e6148ccdc021517c414114.zip |
Added bar_cmd_bindsym
Defined a sway_mouse_binding for clicks on the swaybar
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index a8370532..0fc8202c 100644 --- a/include/config.h +++ b/include/config.h | |||
@@ -27,6 +27,14 @@ struct sway_binding { | |||
27 | }; | 27 | }; |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * A mouse binding and an associated command. | ||
31 | */ | ||
32 | struct sway_mouse_binding { | ||
33 | uint32_t button; | ||
34 | char *command; | ||
35 | }; | ||
36 | |||
37 | /** | ||
30 | * A "mode" of keybindings created via the `mode` command. | 38 | * A "mode" of keybindings created via the `mode` command. |
31 | */ | 39 | */ |
32 | struct sway_mode { | 40 | struct sway_mode { |
@@ -81,6 +89,7 @@ struct bar_config { | |||
81 | char *id; | 89 | char *id; |
82 | uint32_t modifier; | 90 | uint32_t modifier; |
83 | enum desktop_shell_panel_position position; | 91 | enum desktop_shell_panel_position position; |
92 | list_t *bindings; | ||
84 | char *status_command; | 93 | char *status_command; |
85 | char *font; | 94 | char *font; |
86 | int bar_height; | 95 | int bar_height; |
@@ -163,6 +172,10 @@ int sway_binding_cmp(const void *a, const void *b); | |||
163 | int sway_binding_cmp_keys(const void *a, const void *b); | 172 | int sway_binding_cmp_keys(const void *a, const void *b); |
164 | void free_sway_binding(struct sway_binding *sb); | 173 | void free_sway_binding(struct sway_binding *sb); |
165 | 174 | ||
175 | int sway_mouse_binding_cmp(const void *a, const void *b); | ||
176 | int sway_mouse_binding_cmp_buttons(const void *a, const void *b); | ||
177 | void free_sway_mouse_binding(struct sway_mouse_binding *smb); | ||
178 | |||
166 | /** | 179 | /** |
167 | * Global config singleton. | 180 | * Global config singleton. |
168 | */ | 181 | */ |