blog
debian
docs
i3-input
Makefile
UnicodeData.txt
convmap.pl
i3-input.h
ipc.c
keysym.map
keysym2ucs.c
keysym2ucs.h
main.c
ucs2_to_utf8.c
xcb.c
i3-msg
include
man
src
testcases
tests
website
.gitignore
CMDMODE
DEPENDS
GOALS
LICENSE
Makefile
PACKAGE-MAINTAINER
RELEASE-NOTES-3.a-bf1
RELEASE-NOTES-3.b
RELEASE-NOTES-3.c
RELEASE-NOTES-3.d
RELEASE-NOTES-3.d-bf1
RELEASE-NOTES-3.e
RELEASE-NOTES-3.e-bf1
RELEASE-NOTES-3.e-bf2
TODO
common.mk
i3-wsbar
i3.config
i3.desktop
i3.welcome
logo.svg
pseudo-doc.doxygen
Apparantly, after activating numlock once, the numlock modifier stays turned on (use xev(1) to verify). So, to resolve useful keysyms, we remove the numlock flag from the event state. What currently does not work is actually using your keypad.
20 lines
759 B
C
20 lines
759 B
C
#ifndef _I3_INPUT
|
|
#define _I3_INPUT
|
|
|
|
#include <err.h>
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
|
|
|
char *convert_ucs_to_utf8(char *input);
|
|
char *convert_utf8_to_ucs2(char *input, int *real_strlen);
|
|
uint32_t get_colorpixel(xcb_connection_t *conn, char *hex);
|
|
uint32_t get_mod_mask(xcb_connection_t *conn, uint32_t keycode);
|
|
int connect_ipc(char *socket_path);
|
|
void ipc_send_message(int sockfd, uint32_t message_size,
|
|
uint32_t message_type, uint8_t *payload);
|
|
xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
|
|
int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
|
|
void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value);
|
|
|
|
#endif
|