mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
Add keybind.c
This commit is contained in:
parent
5bd55570ba
commit
40f01ed3c9
10 changed files with 114 additions and 11 deletions
|
|
@ -3,16 +3,32 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wayland-server-core.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
|
||||
#include "buf.h"
|
||||
|
||||
struct keybind {
|
||||
uint32_t modifiers;
|
||||
xkb_keysym_t *keysyms;
|
||||
size_t keysyms_len;
|
||||
char *action;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
void keybind_add(struct wl_list *keybinds, const char *keybind, const char *action);
|
||||
void keybind_init();
|
||||
void keybind_print();
|
||||
|
||||
struct rcxml {
|
||||
bool client_side_decorations;
|
||||
struct wl_list keybinds;
|
||||
};
|
||||
|
||||
extern struct rcxml rc;
|
||||
|
||||
void rcxml_init(struct rcxml *rc);
|
||||
void rcxml_init();
|
||||
void rcxml_parse_xml(struct buf *b);
|
||||
void rcxml_read(const char *filename);
|
||||
void rcxml_get_nodenames(struct buf *b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue