mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-20 06:46:26 -04:00
feat: clsoe dialog
This commit is contained in:
parent
72d9a13c0c
commit
41ed7a81a2
15 changed files with 601 additions and 4 deletions
25
message.h
Normal file
25
message.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <tllist.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "key-binding.h"
|
||||
#include "terminal.h"
|
||||
|
||||
static inline bool msgs_mode_is_active(const struct terminal *term)
|
||||
{
|
||||
return tll_length(term->msgs) > 0;
|
||||
}
|
||||
|
||||
void close_message(struct terminal *term);
|
||||
void msgs_reset(struct terminal *term);
|
||||
void msgs_render(struct terminal *term);
|
||||
|
||||
void
|
||||
msgs_input(struct seat *seat, struct terminal *term,
|
||||
const struct key_binding_set *bindings, uint32_t key,
|
||||
xkb_keysym_t sym, xkb_mod_mask_t mods, xkb_mod_mask_t consumed,
|
||||
const xkb_keysym_t *raw_syms, size_t raw_count,
|
||||
uint32_t serial);
|
||||
Loading…
Add table
Add a link
Reference in a new issue