7 Feb 2008 04:43
patch to filter some XIM events out #1
Atsushi Eno <atsushi <at> ximian.com>
2008-02-07 03:43:51 GMT
2008-02-07 03:43:51 GMT
Hello, I had hard time to show XIM frontend UI on winforms. I'm still not fully successful[*1], but now at least I can enable XIM mode with scim. Note that this patch does not enable internationalized text input yet. There still seem some or many issues that block Xutf8LookupString() results. The patch is somehow questionable: - I moved call to X11Keyboard.EnsureLayoutInitialized() to X11Keyboard.ctor(). Without this iiimx shows inconsistent key state[*2], but I'm not sure if this change is mandatory. - Now there are two filters for X11 events: - for KeyPress and KeyRelease, for FocusWindow (as it used to be done). - for everything, for IntPtr.Zero (i.e. event.AnyEvent.Window IIRC): it is required to filter XIM events out correctly. For example, XIM raises XClientMessageEvent that should be filtered out. [*1] iiimx (atok x3) and kinput2 still fail for me. [*2] Yes, I still cannot get its UI "show" up, but I can differentiate its XIM-ish mode and non-XIM-ish mode by not seeing keyboard inputs to a textbox. I still need some more changes, but I think those changes could be applied.(Continue reading)
RSS Feed