diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H index 6aaea6af5..4662efce6 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.H @@ -169,6 +169,8 @@ public: void *control_maximize_button(void *data) FL_OVERRIDE; int event_key(int k) FL_OVERRIDE; int get_key(int k) FL_OVERRIDE; + void enable_im() FL_OVERRIDE; + void disable_im() FL_OVERRIDE; // Wayland-specific member functions void screen_count_set(int count) {num_screens = count;} diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 8a8a8b042..ef19578cf 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -802,6 +802,16 @@ static const struct wl_keyboard_listener wl_keyboard_listener = { }; +void Fl_Wayland_Screen_Driver::enable_im() { + if (seat->text_input) zwp_text_input_v3_enable(seat->text_input); +} + + +void Fl_Wayland_Screen_Driver::disable_im() { + if (seat->text_input) zwp_text_input_v3_disable(seat->text_input); +} + + void text_input_enter(void *data, struct zwp_text_input_v3 *zwp_text_input_v3, struct wl_surface *surface) { //puts("text_input_enter"); |
