summaryrefslogtreecommitdiff
path: root/include/wlhangul.h
blob: 0d6243183c4b77a6a09ab99be36b4010111ab4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef WLHANGUL_H
#define WLHANGUL_H

#include <hangul.h>
#include <stdbool.h>
#include <wayland-client-core.h>

struct wlhangul_state {
	struct wl_display *display;
	struct zwp_input_method_manager_v2 *input_method_manager;

	bool running;

	struct wl_list seats;
};

struct wlhangul_seat {
	struct wl_list link;
	struct wl_seat *wl_seat;
	struct wlhangul_state *state;

	HangulInputContext *input_context;
	struct zwp_input_method_v2 *input_method;
};

#endif