rootston: add support for text input and the basic of input method

The compositor acts as a relay between applications using the text-input protocol and input methods using the input-method protocol.

This change implements the basic but useful support for input-method, leaving out grabs as well as popups.
This commit is contained in:
Dorota Czaplejewicz 2018-08-23 11:39:49 +02:00
parent cec7471119
commit 585757d6e6
7 changed files with 394 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include "rootston/input.h"
#include "rootston/keyboard.h"
#include "rootston/layers.h"
#include "rootston/text_input.h"
struct roots_seat {
struct roots_input *input;
@ -19,6 +20,8 @@ struct roots_seat {
// If the focused layer is set, views cannot receive keyboard focus
struct wlr_layer_surface_v1 *focused_layer;
struct roots_input_method_relay im_relay;
// If non-null, only this client can receive input events
struct wl_client *exclusive_client;