[Uim-bugs] [Bug 17076] Protocol error on XIM_GET_IM_VALUES_REPLY
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 11 20:55:03 PDT 2008
http://bugs.freedesktop.org/show_bug.cgi?id=17076
Etsushi Kato <ek.kato at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Etsushi Kato <ek.kato at gmail.com> 2008-08-11 20:55:02 PST ---
OK. Should this fix the problem?
Index: ximtrans.cpp
===================================================================
--- ximtrans.cpp (revision 5520)
+++ ximtrans.cpp (working copy)
@@ -613,10 +613,6 @@
rlen += 4;
}
- // since only one IMAttribute...
- t->pushC16(imid);
- t->pushC16(16); // length
-
// XIMATTRIBUTE
C16 nr_style;
struct input_style *is = get_im_by_id(imid)->getInputStyles();
@@ -624,8 +620,12 @@
;
}
+ // since only one IMAttribute...
+ t->pushC16(imid);
+ t->pushC16((C16)(8 + nr_style * 4));
+
t->pushC16(0); // attribute id
- t->pushC16((C16)(nr_style * 4)); // length
+ t->pushC16((C16)(4 + nr_style * 4)); // length
t->pushC16(nr_style); // number
t->pushC16(0);
P.S. how did you notice this bug? Just curious.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the uim-bugs
mailing list