[gtk/gtk-3-24: 2/4] imwayland: Use common function to enable text input



commit 601b7c8edff7e0da5f9564a473b4fb671f12aa34
Author: Dorota Czaplejewicz <dorota czaplejewicz puri sm>
Date:   Sat Jan 25 20:26:26 2020 +0000

    imwayland: Use common function to enable text input
    
    Enabling text input needs to send the supported capabilities.
    It's easiest to ensure that by using a single enable function.

 modules/input/imwayland.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c
index d6161ce0af..9b1257a96c 100644
--- a/modules/input/imwayland.c
+++ b/modules/input/imwayland.c
@@ -578,7 +578,6 @@ released_cb (GtkGestureMultiPress *gesture,
              GtkIMContextWayland  *context)
 {
   GtkInputHints hints;
-  gboolean result;
 
   if (!global->current)
     return;
@@ -592,11 +591,7 @@ released_cb (GtkGestureMultiPress *gesture,
                                  context->press_x,
                                  context->press_y,
                                  x, y))
-    {
-      zwp_text_input_v3_enable (global->text_input);
-      g_signal_emit_by_name (global->current, "retrieve-surrounding", &result);
-      commit_state (context);
-    }
+    enable (context);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]