aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-15 07:46:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-15 07:46:13 +0000
commit85c50099afa792a45671664275d3cd33bb8606e6 (patch)
treeb5648a17d7a36ba8f9f55877fca89254a95ec255
parentRevert "wiki: testing" (diff)
conf: add definitions for pipe-{scrollback,view} bindings
-rw-r--r--config.c2
-rw-r--r--input.c5
-rw-r--r--wayland.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/config.c b/config.c
index ab9bb08b..f8be377d 100644
--- a/config.c
+++ b/config.c
@@ -63,6 +63,8 @@ static const char *binding_action_map[] = {
[BIND_ACTION_MINIMIZE] = "minimize",
[BIND_ACTION_MAXIMIZE] = "maximize",
[BIND_ACTION_FULLSCREEN] = "fullscreen",
+ [BIND_ACTION_PIPE_SCROLLBACK] = "pipe-scrollback",
+ [BIND_ACTION_PIPE_VIEW] = "pipe-visible",
};
static_assert(ALEN(binding_action_map) == BIND_ACTION_COUNT,
diff --git a/input.c b/input.c
index 79491f8f..2df8c73a 100644
--- a/input.c
+++ b/input.c
@@ -101,6 +101,11 @@ execute_binding(struct seat *seat, struct terminal *term,
xdg_toplevel_set_fullscreen(term->window->xdg_toplevel, NULL);
break;
+ case BIND_ACTION_PIPE_SCROLLBACK:
+ case BIND_ACTION_PIPE_VIEW:
+ LOG_ERR("unimplemented");
+ break;
+
case BIND_ACTION_COUNT:
assert(false);
break;
diff --git a/wayland.h b/wayland.h
index 224853a6..c47d3c29 100644
--- a/wayland.h
+++ b/wayland.h
@@ -39,6 +39,8 @@ enum bind_action_normal {
BIND_ACTION_MINIMIZE,
BIND_ACTION_MAXIMIZE,
BIND_ACTION_FULLSCREEN,
+ BIND_ACTION_PIPE_SCROLLBACK,
+ BIND_ACTION_PIPE_VIEW,
BIND_ACTION_COUNT,
};