aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-14 18:21:04 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-14 18:21:04 -0500
commit0b5c695d8e90db409476f83515f193d1b3f4d48a (patch)
tree9b81f04d730f5ee0f5e7323517c0e31164cc0cf8 /include
parent42a85431eec1472e18cf886e02a629cda46f8123 (diff)
parent87126a9fc2306f8e15e6148ccdc021517c414114 (diff)
downloadsway-0b5c695d8e90db409476f83515f193d1b3f4d48a.tar.xz
Merge pull request #321 from gpyh/bar_cmds
Added bar_cmd_bindsym
Diffstat (limited to 'include')
-rw-r--r--include/config.h13
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 {
};
/**
+ * A mouse binding and an associated command.
+ */
+struct sway_mouse_binding {
+ uint32_t button;
+ char *command;
+};
+
+/**
* A "mode" of keybindings created via the `mode` command.
*/
struct sway_mode {
@@ -81,6 +89,7 @@ struct bar_config {
char *id;
uint32_t modifier;
enum desktop_shell_panel_position position;
+ list_t *bindings;
char *status_command;
char *font;
int bar_height;
@@ -163,6 +172,10 @@ int sway_binding_cmp(const void *a, const void *b);
int sway_binding_cmp_keys(const void *a, const void *b);
void free_sway_binding(struct sway_binding *sb);
+int sway_mouse_binding_cmp(const void *a, const void *b);
+int sway_mouse_binding_cmp_buttons(const void *a, const void *b);
+void free_sway_mouse_binding(struct sway_mouse_binding *smb);
+
/**
* Global config singleton.
*/