I found that matchbox keyboard "gestures" were bugging me a lot with
the touchscreen jitter that's going on (might bug me anyway).

When touching a key, the corresponding character was outputted - when
drawing left from there, a backspace was generated. If drawing down
from there, a backspace and a return were generated. I wanted to
remove these entirely.

Also, since the new DPI setting, the texts on the keycaps were too
large for the keys. So I wanted the font smaller.

Here's a monotone patch containing those changes, for OM2007.2.

-- Naked

#
# old_revision [e609b6a9ff4128a148102c97d991816ec7782504]
#
# add_file "packages/matchbox-keyboard/files/7-remove-gestures.patch"
#  content [101a1176bd40f4e6b2eb460b48c9b9b07b5395dc]
# 
# add_file "packages/matchbox-keyboard/files/8-even-smaller-font-because-of-dpi-changes.patch"
#  content [9ac095bdc4279b6053c611885fb56a7e7999b8da]
# 
# patch "packages/matchbox-keyboard/matchbox-keyboard_svn.bb"
#  from [a7289c30f50e306ac225353bc9414e7222dc8286]
#    to [14b544da6c4617e6bed135c779d9e8ea932d0bc2]
#
============================================================
--- packages/matchbox-keyboard/files/7-remove-gestures.patch	101a1176bd40f4e6b2eb460b48c9b9b07b5395dc
+++ packages/matchbox-keyboard/files/7-remove-gestures.patch	101a1176bd40f4e6b2eb460b48c9b9b07b5395dc
@@ -0,0 +1,33 @@
+Index: matchbox-keyboard/src/matchbox-keyboard-ui.c
+===================================================================
+--- matchbox-keyboard.orig/src/matchbox-keyboard-ui.c	2007-08-07 23:52:21.000000000 +0300
++++ matchbox-keyboard/src/matchbox-keyboard-ui.c	2007-08-07 23:53:03.000000000 +0300
+@@ -1108,28 +1108,6 @@
+ 		  {
+ 		    mb_kbd_key_release(ui->kbd);	 
+ 		    tvt.tv_usec = repeat_delay;
+-
+-		    /* Gestures */
+-
+-		    /* FIXME: check time first */
+-		    if ( (press_x - xev.xbutton.x) > ui->key_uwidth )
+-		      {
+-			/* <-- slide back ...backspace */
+-			fakekey_press_keysym(ui->fakekey, XK_BackSpace, 0);
+-			fakekey_repeat(ui->fakekey);
+-			fakekey_release(ui->fakekey);
+-			/* FIXME: add <-- --> <-- --> support */
+-		      }
+-		    else if ( (xev.xbutton.y - press_y) > ui->key_uheight )
+-		      {
+-			/* V slide down ...return  */
+-			fakekey_press_keysym(ui->fakekey, XK_BackSpace, 0);
+-			fakekey_release(ui->fakekey);
+-			fakekey_press_keysym(ui->fakekey, XK_Return, 0);
+-			fakekey_release(ui->fakekey);
+-		      }
+-		    /* TODO ^ caps support */
+-
+ 		  }
+ 		break;
+ 	      case ConfigureNotify:
============================================================
--- packages/matchbox-keyboard/files/8-even-smaller-font-because-of-dpi-changes.patch	9ac095bdc4279b6053c611885fb56a7e7999b8da
+++ packages/matchbox-keyboard/files/8-even-smaller-font-because-of-dpi-changes.patch	9ac095bdc4279b6053c611885fb56a7e7999b8da
@@ -0,0 +1,13 @@
+Index: matchbox-keyboard/src/matchbox-keyboard.c
+===================================================================
+--- matchbox-keyboard.orig/src/matchbox-keyboard.c	2007-08-08 00:16:29.000000000 +0300
++++ matchbox-keyboard/src/matchbox-keyboard.c	2007-08-08 00:16:54.000000000 +0300
+@@ -49,7 +49,7 @@
+   kb->row_spacing = 5;
+ 
+   kb->font_family  = strdup("sans");
+-  kb->font_pt_size = 5;
++  kb->font_pt_size = 3;
+   kb->font_variant = strdup("bold");
+ 
+   for (i = 1; i < argc; i++) 
============================================================
--- packages/matchbox-keyboard/matchbox-keyboard_svn.bb	a7289c30f50e306ac225353bc9414e7222dc8286
+++ packages/matchbox-keyboard/matchbox-keyboard_svn.bb	14b544da6c4617e6bed135c779d9e8ea932d0bc2
@@ -12,6 +12,8 @@ SRC_URI = "svn://svn.o-hand.com/repos/ma
            file://4-Add-rendering-debug-logging.patch;patch=1 \
            file://5-Add-support-for-loading-multiple-independent-layouts.patch;patch=1 \
            file://6-Add-layout-switch-key-to-all-layouts.patch;patch=1 \
+           file://7-remove-gestures.patch;patch=1 \
+           file://8-even-smaller-font-because-of-dpi-changes.patch;patch=1 \
           "
 
 

Reply via email to