[Mono-bugs] [Bug 78246][Nor] New - XIM is not enabled

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 30 11:47:33 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78246

--- shadow/78246	2006-04-30 11:47:33.000000000 -0400
+++ shadow/78246.tmp.25202	2006-04-30 11:47:33.000000000 -0400
@@ -0,0 +1,77 @@
+Bug#: 78246
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: OpenSUSE RC2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: jackson at ximian.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XIM is not enabled
+
+I'm guessing this as a bug rather than requesting feature completeness
+since XIM support is explicitly denoted in 1.1.15 release notes.
+
+With current code XIM does not startup.
+
+Steps to reproduce the problem:
+1. Run svn trunk/winforms/swf-textboxes/
+2. move focus to any textbox
+3. start xim (on my box it is simply "henkan" key on standard JP-106 keyboard).
+
+Actual Results:
+xim does not show up.
+
+Expected Results:
+it shows up.
+
+How often does this happen? 
+consistently.
+
+Additional Information:
+
+It does not seem to start xim interestingly because current code lacks
+XGetICValues() invocation... After making X11Keyboard.ctor() to call
+XGetICValues() after CreateXic(), XIM window started to show up and within
+XIM mode it reflects keyboard inputs. However, after this change XplatUIX11
+does not accept any keyboard input. Interestingly, when I dumped
+XGetICValues() result, it just contains KeyPressMask and KeyReleaseMask (it
+is common to when I did the same in simple C code), so those flags are
+already contained in SelectInputMask - i.e. only the call to XGetICValues()
+made the change.
+
+
+Index: System.Windows.Forms/X11Keyboard.cs
+===================================================================
+--- System.Windows.Forms/X11Keyboard.cs	(revision 60100)
++++ System.Windows.Forms/X11Keyboard.cs	(working copy)
+@@ -79,6 +79,9 @@
+ 			}
+ 
+ 			xic = CreateXic (window);
++			EventMask fevent;
++			XGetICValues (xic, "filterEvents", out fevent, IntPtr.Zero);
++Console.WriteLine (fevent);
+ 		}
+ 
+ 		public Keys ModifierKeys {
+@@ -672,6 +675,9 @@
+ 		private static extern IntPtr XCreateIC (IntPtr xim, string name,
+XIMProperties im_style, string name2, IntPtr value2, string name3, IntPtr
+value3, IntPtr terminator);
+ 
+ 		[DllImport ("libX11")]
++		private static extern void XGetICValues (IntPtr xic, string name, out
+EventMask value, IntPtr terminator);
++
++		[DllImport ("libX11")]
+ 		private static extern void XSetICFocus (IntPtr xic);
+ 
+ 		[DllImport ("libX11")]


More information about the mono-bugs mailing list