mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-02 07:15:47 -04:00
feat: support input method
The ime.c is basically derived from sway's text_input.c.
This commit is contained in:
parent
360e259ca5
commit
d2316a3407
9 changed files with 960 additions and 19 deletions
5
seat.h
5
seat.h
|
|
@ -8,6 +8,7 @@
|
|||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_xcursor_manager.h>
|
||||
|
||||
#include "ime.h"
|
||||
#include "server.h"
|
||||
#include "view.h"
|
||||
|
||||
|
|
@ -48,11 +49,15 @@ struct cg_seat {
|
|||
struct wl_listener request_set_cursor;
|
||||
struct wl_listener request_set_selection;
|
||||
struct wl_listener request_set_primary_selection;
|
||||
|
||||
struct cg_ime_relay ime_relay;
|
||||
};
|
||||
|
||||
struct cg_keyboard_group {
|
||||
struct wlr_keyboard_group *wlr_group;
|
||||
struct cg_seat *seat;
|
||||
// only useful for virtual keyboards
|
||||
struct wlr_keyboard *original_keyboard;
|
||||
struct wl_listener key;
|
||||
struct wl_listener modifiers;
|
||||
struct wl_list link; // cg_seat::keyboard_groups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue