summaryrefslogtreecommitdiff
path: root/packages/matchbox-applet-inputmanager/files/update-to-svn.diff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-11 13:16:58 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-11 13:16:58 +0000
commitc43741cf643c1842b0f40821b7d8d745e5d697b6 (patch)
treedd30261a658bcd0e93e88f106fa63026e8ae7e64 /packages/matchbox-applet-inputmanager/files/update-to-svn.diff
parent6e038183866f6c77acf971e5c83a9cf967b26f40 (diff)
mb-applet-inputmanager: apply patch from Phil Blundell to pop up input method on focus
* requires libgtkinput to be loaded * see http://www.nabble.com/libgtkinput-t971843.html * this also brings mbinputmgr-tray.c in sync with o-hand svn rev 1163
Diffstat (limited to 'packages/matchbox-applet-inputmanager/files/update-to-svn.diff')
-rw-r--r--packages/matchbox-applet-inputmanager/files/update-to-svn.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/matchbox-applet-inputmanager/files/update-to-svn.diff b/packages/matchbox-applet-inputmanager/files/update-to-svn.diff
new file mode 100644
index 0000000000..6ec68a0ea2
--- /dev/null
+++ b/packages/matchbox-applet-inputmanager/files/update-to-svn.diff
@@ -0,0 +1,33 @@
+--- /tmp/mbinputmgr-tray.c 2006-11-11 14:11:02.000000000 +0100
++++ mb-applet-input-manager-0.6/mbinputmgr-tray.c 2006-11-11 14:11:43.638554000 +0100
+@@ -228,6 +228,15 @@
+ || (!mb_tray_app_tray_is_vertical (app) && x > IconWidth) )
+ {
+ mb_tray_app_get_absolute_coords (app, &abs_x, &abs_y);
++
++ /* aligned top, position down a little */
++ if (abs_y < 8)
++ {
++ int w, h;
++ mb_menu_get_root_menu_size(PopupMenu, &w, &h);
++ abs_y = h + IconDim + 2;
++ }
++
+ mb_menu_activate(PopupMenu, abs_x, abs_y);
+ ButtonActive = BUTTON_MENU;
+ }
+@@ -257,14 +266,10 @@
+ {
+ if (ev->type == ClientMessage)
+ {
+- printf("beep\n");
+-
+ XClientMessageEvent *cmev = (XClientMessageEvent *)&ev->xconfigure;
+
+ if (cmev->message_type == AtomIMActivate)
+ {
+- printf("beep\n");
+-
+ /* De Activate */
+ if (cmev->data.l[0] == 0 && mbinputmgr_method_active(Inpmgr_state))
+ mbinputmgr_toggle_selected_method (Inpmgr_state);