From 4efbda84392e00829b9619ba4d8c49bdc5128606 Mon Sep 17 00:00:00 2001 From: Zhai Edwin Date: Wed, 22 Dec 2010 20:53:50 +0800 Subject: matchbox-keyboard: Make as singleton Multiple matchbox-keyboard instances would occupy whole screen and cause X window segfault. Making matchbox-keyboard singleton is one work around. This patch allow only one instance of matchbox-keyboard based on some mechanism in matchbox-desktop. In future, an applet and GTK-IM modules in matchbox-keyboard can be used to automatically map/unmap the virtual keyboard on demand. [BUGID #509] got fixed. Signed-off-by: Zhai Edwin --- .../matchbox-keyboard/files/single-instance.patch | 22 ++++++++++++++++++++++ .../matchbox-keyboard/matchbox-keyboard_svn.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-sato/matchbox-keyboard/files/single-instance.patch diff --git a/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch b/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch new file mode 100644 index 000000000..d0adc47f7 --- /dev/null +++ b/meta/recipes-sato/matchbox-keyboard/files/single-instance.patch @@ -0,0 +1,22 @@ +Multiple matchbox-keyboard instances would occupy whole screen and cause X +window segfault(Bug 509). Making matchbox-keyboard singleton is one work +around. + +This patch allow only one instance of matchbox-keyboard based on some mechanism +in matchbox-desktop. In future, an applet and GTK-IM modules in +matchbox-keyboard can be used to automatically map/unmap the virtual keyboard +on demand. + +Signed-off-by: Zhai Edwin + + +Index: matchbox-keyboard/matchbox-keyboard.desktop +=================================================================== +--- matchbox-keyboard.orig/matchbox-keyboard.desktop 2010-12-22 20:41:40.000000000 +0800 ++++ matchbox-keyboard/matchbox-keyboard.desktop 2010-12-22 20:42:12.000000000 +0800 +@@ -6,3 +6,5 @@ + Icon=matchbox-keyboard.png + Categories=Panel;Utility;MB + X-MB-INPUT-MECHANSIM=True ++X-MB-SingleInstance=true ++StartupNotify=true diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_svn.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_svn.bb index 0425fec78..337738edf 100644 --- a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_svn.bb +++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_svn.bb @@ -15,6 +15,7 @@ PR = "r4" SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \ file://configure_fix.patch;patch=1;maxrev=1819 \ + file://single-instance.patch;patch=1 \ file://80matchboxkeyboard.shbg" S = "${WORKDIR}/${PN}" -- cgit v1.2.3