pgo: fix build for new key-binding API

This commit is contained in:
Owen Rafferty 2022-04-22 17:12:04 -05:00
parent 1383def2a0
commit c08782ffac
No known key found for this signature in database
GPG key ID: A68B10E2554DEBCB
2 changed files with 4 additions and 26 deletions

View file

@ -181,9 +181,13 @@ vtlib = static_library(
pgolib = static_library( pgolib = static_library(
'pgolib', 'pgolib',
'config.c', 'config.h',
'grid.c', 'grid.h', 'grid.c', 'grid.h',
'key-binding.c', 'key-binding.h',
'selection.c', 'selection.h', 'selection.c', 'selection.h',
'terminal.c', 'terminal.h', 'terminal.c', 'terminal.h',
'tokenize.c', 'tokenize.h',
'user-notification.c', 'user-notification.h',
wl_proto_src + wl_proto_headers, wl_proto_src + wl_proto_headers,
dependencies: [libepoll, pixman, fcft, tllist, wayland_client, xkb, utf8proc], dependencies: [libepoll, pixman, fcft, tllist, wayland_client, xkb, utf8proc],
link_with: vtlib, link_with: vtlib,
@ -203,14 +207,12 @@ executable(
'foot', 'foot',
'async.c', 'async.h', 'async.c', 'async.h',
'box-drawing.c', 'box-drawing.h', 'box-drawing.c', 'box-drawing.h',
'config.c', 'config.h',
'commands.c', 'commands.h', 'commands.c', 'commands.h',
'extract.c', 'extract.h', 'extract.c', 'extract.h',
'fdm.c', 'fdm.h', 'fdm.c', 'fdm.h',
'foot-features.h', 'foot-features.h',
'ime.c', 'ime.h', 'ime.c', 'ime.h',
'input.c', 'input.h', 'input.c', 'input.h',
'key-binding.c', 'key-binding.h',
'main.c', 'main.c',
'notify.c', 'notify.h', 'notify.c', 'notify.h',
'quirks.c', 'quirks.h', 'quirks.c', 'quirks.h',
@ -221,9 +223,7 @@ executable(
'shm.c', 'shm.h', 'shm.c', 'shm.h',
'slave.c', 'slave.h', 'slave.c', 'slave.h',
'spawn.c', 'spawn.h', 'spawn.c', 'spawn.h',
'tokenize.c', 'tokenize.h',
'url-mode.c', 'url-mode.h', 'url-mode.c', 'url-mode.h',
'user-notification.c', 'user-notification.h',
'wayland.c', 'wayland.h', 'wayland.c', 'wayland.h',
wl_proto_src + wl_proto_headers, version, wl_proto_src + wl_proto_headers, version,
dependencies: [math, threads, libepoll, pixman, wayland_client, wayland_cursor, xkb, fontconfig, utf8proc, dependencies: [math, threads, libepoll, pixman, wayland_client, wayland_cursor, xkb, fontconfig, utf8proc,

View file

@ -171,28 +171,6 @@ void get_current_modifiers(const struct seat *seat,
xkb_mod_mask_t *effective, xkb_mod_mask_t *effective,
xkb_mod_mask_t *consumed, uint32_t key) {} 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 int
main(int argc, const char *const *argv) main(int argc, const char *const *argv)
{ {