[immodule-qt] Re: language() and error handling (Re: Question about svn trunk)

Lars Knoll lars at trolltech.com
Mon Aug 2 13:12:15 EEST 2004


On Monday 02 August 2004 11:49, Daisuke Kameda wrote:
> On Monday 02 August 2004 15:57, Lars Knoll wrote:
> > A global switching could be implemented using an XChangeProperty on the
> > root window (that's what KDE currently uses for things as the style
> > change notification). If the switching is only supposed to affect the
> > current focus application we need some more sophisiticated solution.
> >
> > I would also prefer if we can try to get the same switching mechanism
> > implemented in both Gnome and KDE/Qt, so that all applications will work
> > with the same and you only need one switching application.
>
> I considered the system which is similar to your idea before.
>
> I thought that there is two problems. First, using XChangeProperty will
> complicate immodule-qt implementation. Second, it will take time until
> IM-switching mechanism in GNOME/GTK and KDE/Qt is communalized.

I'm not sure it would complicate the implementation. We need to have the hook 
to handle IM switching in Qt itself anyway (most probably somewhere in 
qapplication_x11.cpp). We are currently listening to PropertyNotify events 
for the root window anyway, so this would only need a few lines of code.

The real issue is to make this work for both Gtk and Qt and to find a unified 
mechanism here. IMO this should include a mechanism for regular keyboard 
switching as well, so we can put both keyboard switching and IM switching 
into one place.

> I think that it was not good to introduce this function at least into Qt4
> from the above mentioned reason. What do you think about this point?

You mean we should not provide any switching method at all until the above 
problems are solved? I could live with this, but I am uncertain how urgently 
you will a switching capability.

Best regards,
Lars



More information about the immodule-qt mailing list