summaryrefslogtreecommitdiff
path: root/xC.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-10 18:58:55 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-10 19:01:42 +0200
commit0015d26dc8a81ab17f4d84ebed3d0cce201e8e96 (patch)
tree87a0f5fa15f65b937c0a6fbc6f1849b59d4311a8 /xC.c
parent7d5e63be1fd6602ab8e62316202924b316c7436f (diff)
downloadxK-0015d26dc8a81ab17f4d84ebed3d0cce201e8e96.tar.gz
xK-0015d26dc8a81ab17f4d84ebed3d0cce201e8e96.tar.xz
xK-0015d26dc8a81ab17f4d84ebed3d0cce201e8e96.zip
xC/xP: support hiding unimportant messages at all
Diffstat (limited to 'xC.c')
-rw-r--r--xC.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xC.c b/xC.c
index c440abc..1399744 100644
--- a/xC.c
+++ b/xC.c
@@ -3068,6 +3068,7 @@ relay_prepare_buffer_update (struct app_context *ctx, struct buffer *buffer)
struct relay_event_data_buffer_update *e = &m->data.buffer_update;
e->event = RELAY_EVENT_BUFFER_UPDATE;
e->buffer_name = str_from_cstr (buffer->name);
+ e->hide_unimportant = buffer->hide_unimportant;
}
static void
@@ -14202,6 +14203,10 @@ on_toggle_unimportant (int count, int key, void *user_data)
(void) key;
struct app_context *ctx = user_data;
ctx->current_buffer->hide_unimportant ^= true;
+
+ relay_prepare_buffer_update (ctx, ctx->current_buffer);
+ relay_broadcast (ctx);
+
buffer_print_backlog (ctx, ctx->current_buffer);
return true;
}