mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
pgo: fix build for new key-binding API
This commit is contained in:
parent
1383def2a0
commit
c08782ffac
2 changed files with 4 additions and 26 deletions
22
pgo/pgo.c
22
pgo/pgo.c
|
|
@ -171,28 +171,6 @@ void get_current_modifiers(const struct seat *seat,
|
|||
xkb_mod_mask_t *effective,
|
||||
xkb_mod_mask_t *consumed, uint32_t key) {}
|
||||
|
||||
static struct key_binding_set kbd;
|
||||
static bool kbd_initialized = false;
|
||||
|
||||
struct key_binding_set *
|
||||
key_binding_for(
|
||||
struct key_binding_manager *mgr, const struct terminal *term,
|
||||
const struct seat *seat)
|
||||
{
|
||||
if (!kbd_initialized) {
|
||||
kbd_initialized = true;
|
||||
kbd = (struct key_binding_set){
|
||||
.key = tll_init(),
|
||||
.search = tll_init(),
|
||||
.url = tll_init(),
|
||||
.mouse = tll_init(),
|
||||
.selection_overrides = 0,
|
||||
};
|
||||
}
|
||||
|
||||
return &kbd;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, const char *const *argv)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue