Enable/disable default virtual keyboard 47/32947/4 accepted/tizen/common/20150105.131044 accepted/tizen/ivi/20150104.010556 accepted/tizen/mobile/20150106.003317 accepted/tizen/tv/20150106.002246 accepted/tizen/wearable/20150106.002816 submit/tizen/20141231.131054 submit/tizen_ivi/20141231.424242
authorImran Zaman <imran.zaman@intel.com>
Tue, 30 Dec 2014 13:20:13 +0000 (15:20 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 31 Dec 2014 12:44:16 +0000 (04:44 -0800)
Since fullscreen shell does not support virtual keyboard,
added configure option to enable/disable default virtual
keyboard. This avoids unnecessary trial of launching vkb
and hence will improve boot time

Change-Id: I67bdd8ee231d101d6e3747a45968758af42ebc5a
Bug-Tizen: TC-810
Signed-off-by: Imran Zaman <imran.zaman@intel.com>
configure.ac
packaging/weston.spec
src/text-backend.c

index d2b125e..1cb1dcd 100644 (file)
@@ -94,6 +94,15 @@ if test "x$enable_multiseat" = "xyes"; then
 fi
 AM_CONDITIONAL(HAVE_MULTISEAT, test "x$enable_multiseat" = xyes)
 
+AC_ARG_ENABLE([default-vkb],
+              [AC_HELP_STRING([--enable-default-vkb],
+                              [Enable default virtual keyboard])],
+              [],
+              [enable_default_vkb=yes])
+if test "x$enable_default_vkb" = "xyes"; then
+  AC_DEFINE(HAVE_DEFAULT_VKB, [1], [Enable default virtual keyboard])
+fi
+
 AC_ARG_ENABLE(sys-uid, [  --enable-sys-uid],,
               enable_sys_uid=no)
 if test x$enable_sys_uid = xyes; then
index f5be5bf..abacbd2 100644 (file)
 %define extra_config_options3 --enable-sys-uid
 %endif
 
+%if "%{profile}" == "ivi"
+%define extra_config_options4 --disable-default-vkb
+%endif
+
 Name:           weston
 Version:        1.6.0
 Release:        0
index e9578a4..f7821a2 100644 (file)
@@ -937,15 +937,18 @@ static void
 text_backend_configuration(struct text_backend *text_backend)
 {
        struct weston_config_section *section;
-       char *client;
-       int ret;
+       char *client = NULL;
+       int ret = -1;
 
        section = weston_config_get_section(text_backend->compositor->config,
                                            "input-method", NULL, NULL);
+#if HAVE_DEFAULT_VKB
        ret = asprintf(&client, "%s/weston-keyboard",
                       weston_config_get_libexec_dir());
+#endif
        if (ret < 0)
                client = NULL;
+
        weston_config_section_get_string(section, "path",
                                         &text_backend->input_method.path,
                                         client);