mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
wayland: remove selection_override_modmask member
This member is no longer valid - we need to use one from the current key-binding set.
This commit is contained in:
parent
e3683b58fc
commit
876044df8d
3 changed files with 25 additions and 3 deletions
22
pgo/pgo.c
22
pgo/pgo.c
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "async.h"
|
||||
#include "config.h"
|
||||
#include "key-binding.h"
|
||||
#include "reaper.h"
|
||||
#include "sixel.h"
|
||||
#include "user-notification.h"
|
||||
|
|
@ -170,6 +171,27 @@ 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